[LLVMdev] Extending FunctionType
Gabriel RodrÃguez
grodriguez at udc.es
Mon Feb 28 04:31:17 PST 2011
Hi all,
I am trying to extend a FunctionType to include new parameters. In particular, I want to
ensure that the main function has been declared with both argsc and argsv. However
there seems to be no easy way to accomplish this: llvm::Function::getFunctionType() returns a
a reference to a const object, while modifying only the argument list yields an error during verification
since the function type does not match its arguments. Is there any approach that I am missing or
a simple workaround to this problem?
Thanks in advance, and best regards,
Gabriel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110228/c27e9aec/attachment.html>
More information about the llvm-dev
mailing list