mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
land David Blaikie's patch to de-constify Type, with a few tweaks.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135375 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -384,7 +384,7 @@ static bool ExtractLoops(BugDriver &BD,
|
||||
|
||||
outs() << "*** Loop extraction successful!\n";
|
||||
|
||||
std::vector<std::pair<std::string, const FunctionType*> > MisCompFunctions;
|
||||
std::vector<std::pair<std::string, FunctionType*> > MisCompFunctions;
|
||||
for (Module::iterator I = ToOptimizeLoopExtracted->begin(),
|
||||
E = ToOptimizeLoopExtracted->end(); I != E; ++I)
|
||||
if (!I->isDeclaration())
|
||||
@@ -569,7 +569,7 @@ static bool ExtractBlocks(BugDriver &BD,
|
||||
// together.
|
||||
delete ToExtract;
|
||||
|
||||
std::vector<std::pair<std::string, const FunctionType*> > MisCompFunctions;
|
||||
std::vector<std::pair<std::string, FunctionType*> > MisCompFunctions;
|
||||
for (Module::iterator I = Extracted->begin(), E = Extracted->end();
|
||||
I != E; ++I)
|
||||
if (!I->isDeclaration())
|
||||
@@ -850,7 +850,7 @@ static void CleanupAndPrepareModules(BugDriver &BD, Module *&Test,
|
||||
NullPtr,F->getName()+".fpcache");
|
||||
|
||||
// Construct a new stub function that will re-route calls to F
|
||||
const FunctionType *FuncTy = F->getFunctionType();
|
||||
FunctionType *FuncTy = F->getFunctionType();
|
||||
Function *FuncWrapper = Function::Create(FuncTy,
|
||||
GlobalValue::InternalLinkage,
|
||||
F->getName() + "_wrapper",
|
||||
|
||||
Reference in New Issue
Block a user