llvm: get function from a "call" instruction

llvm

Solution

There is `Function* CallInst::getCalledFunction() const` method.

Problem

Consider the llvm instruction: ``` %call3 = call i32 @square(i32 %1) ``` Is it possible to extract the pointer to the "square" function ? Thanks !

Original source