[LLVMdev] Duplicate Function with duplicated Arguments

James Huang bonanhuang at gmail.com
Sat Sep 13 12:51:55 PDT 2008


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!

James



More information about the llvm-dev mailing list