Displaying 1 result from an estimated 1 matches for "82f1ef1c".
2016 Sep 03
2
How to insert instructions before each function calls?
I'm trying to insert some instructions before each function calls (before
arguments push):
lea %EAX, label ----- new instructions
mov [ESP+stacksize], %EAX ----- new instructions
push arg1
push arg2
...
push argn
call callee_name
I am a newbie to LLVM. I tried to use buildMI() to insert the instructions
in the lowercall() function. But I couldn't