Displaying 1 result from an estimated 1 matches for "4377cf4e".
2015 Mar 12
2
[LLVMdev] Passing a function pointer as parameter to function call?
Dear all,
I'm writing an LLVM pass, and I want to insert a call instruction that
takes a function pointer as a parameter. The effect would be the same as
following:
atexit(foo);
Where foo is a function I insert with M.getOrInsertFunction(), which in
LLVM is a Function class.
I searched for a while and did not come up with a satisfying answer. Should
I create a Value class of pointer type,