[LLVMdev] Setting called value for an indirect function call
Arnamoy Bhattacharyya
arnamoy at ualberta.ca
Wed Oct 30 10:22:37 PDT 2013
Hello;
I am trying to clone some call instructions in the IR and then set the
call destination of those call instructions to my own library
functions that happens to have the same arguments and return types of
the original callee.
It works perfectly for direct calls using setCalledFunction(). But
when the function call is indirect, is there a way to set the callee?
Something like setCalledValue()? How do I achieve this?
Any help will be appreciated, thanks a lot!
--
Arnamoy Bhattacharyya
Athabasca Hall 143
Department of Computing Science - University of Alberta
Edmonton, Alberta, Canada, T6G 2E8
587-710-7073
More information about the llvm-dev
mailing list