[LLVMdev] Accessing a function's arguments

Chris Lattner sabre at nondot.org
Sun Oct 13 15:57:00 PDT 2002

> My incorrect assumption was that the ArgumentList would get built when the
> Function is instantiated -- by simply walking over the parameter type vector
> of the FunctionType.

I just checked in a changeset that changes LLVM to operate exactly this
way: when a Function is constructed, the argument list is populated.  Thus
every function will always have an argument list that matches it's
function type, even external functions.

I think this is a case where you incorrect expectations was due to a
problem in LLVM, not your expectations.  :)




More information about the llvm-dev mailing list