[llvm-dev] Change function call name in a CallInst only in certain functions
Dávid Bolvanský via llvm-dev
llvm-dev at lists.llvm.org
Fri Mar 23 16:07:16 PDT 2018
Hello,
In my module I have functions:
a
b
c
f3 calls "a"
f2 calls "a"
f1 calls "b"
I would like to modify a CallInst in the f2. Now it calls "a", but I want
changed it to "c".
When loop over the instructions of the f2, I can get a CallInst to be
modified, then I use "setName" to changed it to "c".
Problem is, since references are updated, "a" is changed to "c" even in f1.
Any solution?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180324/5722a3dd/attachment.html>
More information about the llvm-dev
mailing list