Home | History | Annotate | Download | only in Instrumentation

Lines Matching defs:SP

153 static StringRef getFunctionName(const DISubprogram *SP) {
154 if (!SP->getLinkageName().empty())
155 return SP->getLinkageName();
156 return SP->getName();
313 GCOVFunction(const DISubprogram *SP, Function *F, raw_ostream *os,
315 : SP(SP), Ident(Ident), UseCfgChecksum(UseCfgChecksum), CfgChecksum(0),
319 DEBUG(dbgs() << "Function: " << getFunctionName(SP) << "\n");
333 FNLOS << getFunctionName(SP) << SP->getLine();
368 uint32_t BlockLen = 1 + 1 + 1 + lengthOfGCOVString(getFunctionName(SP)) +
369 1 + lengthOfGCOVString(SP->getFilename()) + 1;
377 writeGCOVString(getFunctionName(SP));
378 writeGCOVString(SP->getFilename());
379 write(SP->getLine());
413 const DISubprogram *SP;
455 if (DISubprogram *SP = F.getSubprogram())
456 FnMap[SP] = &F;
502 for (auto *SP : CU->getSubprograms()) {
503 Function *F = FnMap[SP];
515 Funcs.push_back(make_unique<GCOVFunction>(SP, F, &out, FunctionIdent++,
547 if (SP != getDISubprogram(Loc.getScope()))
550 GCOVLines &Lines = Block.getFile(SP->getFilename());
581 for (auto *SP : CU->getSubprograms()) {
582 Function *F = FnMap[SP];
602 CountersBySP.push_back(std::make_pair(Counters, SP));
863 auto *SP = cast_or_null<DISubprogram>(CountersBySP[j].second);
869 ? Builder.CreateGlobalStringPtr(getFunctionName(SP))