[LLVMdev] Function::getArgumentList() question
sabre at nondot.org
Fri May 9 17:17:01 PDT 2003
> The comments in Function.h for Function::getArgumentList() state that
> the argument list is empty for external functions. This entails (I
That comment is actually out of date, and has been updated. Sorry. Only
the basic block list is empty for external functions.
> think) that it is not possible to determine the contents of the argument
> list of functions for which LLVM has only seen a forward declaration,
> for a given compilation unit. Is this correct?
Even without the argument list, you can always get the type of the
function (using getType() or getFunctionType()) and look at the argument
types from the FunctionType...
More information about the llvm-dev