[LLVMdev] How to replace a function using llvm?

Shawn Kim shawn.subscribe at gmail.com
Mon Sep 19 08:20:24 PDT 2011

Hi all,

I am a newbie and have a question.

Using llvm, I want to change the original function into a new function which
have an additional pointer argument:

original function: int haha(int n) { .... }
new function: int haha(int n, *ptr) { ... }

Could you give me a suggestion?

Thank you in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110919/fdd50e64/attachment.html>

More information about the llvm-dev mailing list