[LLVMdev] Duplicate Function with duplicated Arguments
Matthijs Kooijman
matthijs at stdin.nl
Sat Sep 13 13:38:02 PDT 2008
Hi James,
> I'm now writing a pass and I wanna ask a question about how to
> duplicate the function and add duplicated arguments in llvm, for
> example:
>
> func(int a, char *b) -> func(int a, char *b, int a1, char *b1)
>
> I'm now stuck at using "getOrInsertFunction" and how to handle
> "getArgumentList", please share your opinion, thanks a lot!
I have some code which does something similar. I'll send you an example when
I'm office again next monday.
Gr.
Matthijs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080913/e1db2e44/attachment.sig>
More information about the llvm-dev
mailing list