llvm::CallBase::getCalledFunction

Return the directly called Function, if known.

Synopsis

Declared in <llvm/IR/InstrTypes.h>

Function*
getCalledFunction() const;

Description

Returns the function called, or null if this is an indirect function invocation or the function signature does not match the call signature, or the call target is an alias.

Return Value

The called Function, or null if not a direct matching call.