Commit c853306f authored by Per's avatar Per

broken

parent 43fce1f0
......@@ -88,9 +88,18 @@ void CallGirlGraph::addToCallGirlGraph(Function *F)
// We can be more precise here by using TargetArg returned by
// 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());
}
else if (!Callee->isIntrinsic())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment