Hi folks -- The comments in Function.h for Function::getArgumentList() state that the argument list is empty for external functions. This entails (I 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? If this is the case, is there any way around this? I'm in a situation where it'd be I have only declarations of a bunch of (library) functions, and need to determine the size (in bytes) of their operands for a particular target. If my understanding of the aforementioned comment is correct, then it seems that the entire library would need to be witnessed by LLVM in order for me to obtain this information. TIA for any advice, -j -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20030509/d6822ac6/attachment.html>
> The comments in Function.h for Function::getArgumentList() state that > the argument list is empty for external functions. This entails (IThat 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... -Chris -- http://llvm.cs.uiuc.edu/ http://www.nondot.org/~sabre/Projects/
Reasonably Related Threads
- Insert CallInst within a function passing same parameters of the calling function.
- [LLVMdev] Accessing a function's arguments
- [LLVMdev] Duplicate Function with duplicated Arguments
- Problem about API difference between LLVM3.5 and LLVM3.9
- [LLVMdev] CloneFunctionInto() Error