Displaying 1 result from an estimated 1 matches for "getatindex".
Did you mean:
get_index
2016 Mar 23
0
Writing Module Pass to modify arguments of a function
...tion using *CloneFunctionInto*;
then i replace uses of the old function using
*Old_func->replaceAllUsesWith(new_Func)*.
I have the end code figured however, I'm stuck at the beginning of the loop
:
*"for (Module::iterator F = M.begin(), e = M.end(); F != e; ++F) {*
* Function *Func=M.getAtIndex(F);"*
Now the problem is there is no such function as getAtIndex, so how do i
know the function i'm currently at so i can use it in the *Old_func*
variable?
If any of you can point me in the right direction, any help is greatly
appreciated, thank you!
Best,
-Ammar
-------------- next p...