Skip to content
Snippets Groups Projects
Commit c853306f authored by Per's avatar Per
Browse files

broken

parent 43fce1f0
Branches
No related tags found
No related merge requests found
...@@ -88,9 +88,18 @@ void CallGirlGraph::addToCallGirlGraph(Function *F) ...@@ -88,9 +88,18 @@ void CallGirlGraph::addToCallGirlGraph(Function *F)
// We can be more precise here by using TargetArg returned by // We can be more precise here by using TargetArg returned by
// Intrinsic::isLeaf. // Intrinsic::isLeaf.
MDNode *metadata = CS->getMetadata(0); // MDNode *metadata = CS->getMetadata(0);
errs() << "\n -- callsite -- " << I << ", Callee: " << Callee << "\n";
SmallVectorImpl<std::pair<unsigned, MDNode *>> MD();
(&I)->getAllMetadata(MD);
// errs() << "metadata: " << << "\n";
// errs() << "metadata: " << CS->getMetadata(1) << "\n";
// errs() << "metadata: " << CS->getMetadata(2) << "\n";
// errs() << "metadata: " << CS->getMetadata(3) << "\n";
errs() << "\n -- here -- " << I << "Callee:" << Callee;
Node->addCalledFunction(CS, CallsExternalNode.get()); Node->addCalledFunction(CS, CallsExternalNode.get());
} }
else if (!Callee->isIntrinsic()) else if (!Callee->isIntrinsic())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment