Displaying 3 results from an estimated 3 matches for "m2485ae4f".
2010 Jan 30
0
[LLVMdev] Redefining function
Hi Conrado,
> I couldn't find the solution to my problem (if it has one) in the
> mailing list or the source code. The problem is: how can I redefine a
> function that's been called already by some other function?
why do you want to do this?
> Suppose I have 3 files, all compiled to bytecode through llvm-gcc (I
> think it could be clang instead).
>
> File1.c:
2010 Jan 30
2
[LLVMdev] Redefining function
...le3.c
> swap (file1, file2, file3);
>
If all the functions are in the same module, then you can use
> FunctionA->replaceAllUsesWith(FunctionB) if they have the same
> type.
>
Sorry I didn't see that function before. But, when I tried that (pastebin
code: http://pastebin.com/m2485ae4f), it still doesn't print as supposed. It
calls only the first function printing
File2.c
File2.c
Maybe that works when the functions haven't been called before. Am I using
the wrong way or had to do something before?
Thanks,
Miranda
-------------- next part --------------
An HTML attachme...
2010 Jan 29
2
[LLVMdev] Redefining function
Hi everybody.
I've just started learning about LLVM and didn't get too far studying the
core.
I couldn't find the solution to my problem (if it has one) in the mailing
list or the source code. The problem is: how can I redefine a function
that's been called already by some other function?
Suppose I have 3 files, all compiled to bytecode through llvm-gcc (I think
it could be clang