Lines Matching defs:SP
207 static StringRef getFunctionName(const DISubprogram *SP) {
208 if (!SP->getLinkageName().empty())
209 return SP->getLinkageName();
210 return SP->getName();
218 static SmallString<128> getFilename(const DISubprogram *SP) {
220 StringRef RelPath = SP->getFilename();
224 sys::path::append(Path, SP->getDirectory(), SP->getFilename());
333 GCOVFunction(GCOVProfiler *P, Function *F, const DISubprogram *SP,
335 : GCOVRecord(P), SP(SP), EndLine(EndLine), Ident(Ident),
337 LLVM_DEBUG(dbgs() << "Function: " << getFunctionName(SP) << "\n");
344 FNLOS << getFunctionName(SP) << SP->getLine();
363 SmallString<128> Filename = getFilename(SP);
364 uint32_t BlockLen = 3 + wordsOfString(getFunctionName(SP));
371 writeString(getFunctionName(SP));
373 write(SP->isArtificial()); // artificial
375 write(SP->getLine()); // start_line
418 const DISubprogram *SP;
784 DISubprogram *SP = F.getSubprogram();
786 if (!SP) continue;
798 uint32_t Line = SP->getLine();
799 auto Filename = getFilename(SP);
823 Funcs.push_back(std::make_unique<GCOVFunction>(this, &F, SP, EndLine,
862 if (!SP->isArtificial())
893 if (isa<DILexicalBlockFile>(Scope) || SP != getDISubprogram(Scope))
902 DISubprogram *SP = F.getSubprogram();
910 CountersBySP.emplace_back(Counters, SP);