i have an object callInst.How i can take the real name of function and not the name which have in IR code ? if i run this code in my pass(which Useless post in another question)
StringRef get_function_name(CallInst *call)
{
Function *fun = call->getCalledFunction();
if (fun)
return call->getName();
else
return StringRef("indirect call");
}
this give me the name of IR code(for example call,call1,call2).I would like to have the real name of callInst (printf,foo,main).
Any idea?
Thanks a lot