[llvm-commits] [poolalloc] r164236 - in /poolalloc/trunk/lib/AssistDS: FuncSpec.cpp IndCloner.cpp TypeChecks.cpp
Will Dietz
wdietz2 at illinois.edu
Wed Sep 19 09:41:20 PDT 2012
Author: wdietz2
Date: Wed Sep 19 11:41:19 2012
New Revision: 164236
URL: http://llvm.org/viewvc/llvm-project?rev=164236&view=rev
Log:
Short version of CloneFunction() no longer exists, move to longer version.
Modified:
poolalloc/trunk/lib/AssistDS/FuncSpec.cpp
poolalloc/trunk/lib/AssistDS/IndCloner.cpp
poolalloc/trunk/lib/AssistDS/TypeChecks.cpp
Modified: poolalloc/trunk/lib/AssistDS/FuncSpec.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/AssistDS/FuncSpec.cpp?rev=164236&r1=164235&r2=164236&view=diff
==============================================================================
--- poolalloc/trunk/lib/AssistDS/FuncSpec.cpp (original)
+++ poolalloc/trunk/lib/AssistDS/FuncSpec.cpp Wed Sep 19 11:41:19 2012
@@ -96,7 +96,8 @@
for (std::map<std::pair<Function*, std::vector<std::pair<unsigned, Constant*> > >, Function* >::iterator I = toClone.begin(), E = toClone.end(); I != E; ++I) {
// Clone all the functions we need cloned
- Function* DirectF = CloneFunction(I->first.first);
+ ValueToValueMapTy VMap;
+ Function* DirectF = CloneFunction(I->first.first, VMap, false);
DirectF->setName(I->first.first->getName().str() + "_SPEC");
DirectF->setLinkage(GlobalValue::InternalLinkage);
I->first.first->getParent()->getFunctionList().push_back(DirectF);
Modified: poolalloc/trunk/lib/AssistDS/IndCloner.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/AssistDS/IndCloner.cpp?rev=164236&r1=164235&r2=164236&view=diff
==============================================================================
--- poolalloc/trunk/lib/AssistDS/IndCloner.cpp (original)
+++ poolalloc/trunk/lib/AssistDS/IndCloner.cpp Wed Sep 19 11:41:19 2012
@@ -127,7 +127,8 @@
// be used for direct function calls.
//
Function * Original = toClone[index];
- Function* DirectF = CloneFunction(Original);
+ ValueToValueMapTy VMap;
+ Function* DirectF = CloneFunction(Original, VMap, false);
DirectF->setName(Original->getName() + "_DIRECT");
//
Modified: poolalloc/trunk/lib/AssistDS/TypeChecks.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/AssistDS/TypeChecks.cpp?rev=164236&r1=164235&r2=164236&view=diff
==============================================================================
--- poolalloc/trunk/lib/AssistDS/TypeChecks.cpp (original)
+++ poolalloc/trunk/lib/AssistDS/TypeChecks.cpp Wed Sep 19 11:41:19 2012
@@ -786,7 +786,8 @@
}
// create internal clone
- Function *F_clone = CloneFunction(&F);
+ ValueToValueMapTy VMap;
+ Function *F_clone = CloneFunction(&F, VMap, false);
F_clone->setName(F.getName().str() + "internal");
F.setLinkage(GlobalValue::InternalLinkage);
F.getParent()->getFunctionList().push_back(F_clone);
@@ -1019,7 +1020,8 @@
visitInternalByValFunction(M, F);
} else {
// create internal clone
- Function *F_clone = CloneFunction(&F);
+ ValueToValueMapTy VMap;
+ Function *F_clone = CloneFunction(&F, VMap, false);
F_clone->setName(F.getName().str() + "internal");
F.setLinkage(GlobalValue::InternalLinkage);
F.getParent()->getFunctionList().push_back(F_clone);
More information about the llvm-commits
mailing list