[LLVMdev] Duplicate Function with duplicated Arguments
James Huang
bonanhuang at gmail.com
Mon Sep 15 06:30:21 PDT 2008
Thanks a lot, I appreciate your help.
Regards,
James
On Sat, Sep 13, 2008 at 4:38 PM, Matthijs Kooijman <matthijs at stdin.nl> wrote:
> 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
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
>
> iD8DBQFIzCSqz0nQ5oovr7wRAqtwAJ45agKgB2Af77pLdI6/zz8fSvQ1CwCg1imZ
> 71wcyC9cs142r7GgUIifEGQ=
> =1HfN
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>
More information about the llvm-dev
mailing list