Displaying 1 result from an estimated 1 matches for "new_function".
2016 Mar 01
2
Insert CallInst within a function passing same parameters of the calling function.
...on foo will become:
int foo(int a, int b) {
bar(a,b);
…
...
}
I am using the following code:
bool ThreadSanitizer::runOnFunction(Function &F) {
ValueToValueMapTy VMap;
Function *new_function = CloneFunction(&F, VMap, false);
new_function->setName(functionName + “_newfunction");
F.getParent()->getFunctionList().push_back(new_function);...