[dragonegg] r202169 - Update for llvm api change.
Rafael Espindola
rafael.espindola at gmail.com
Tue Feb 25 09:30:38 PST 2014
Author: rafael
Date: Tue Feb 25 11:30:37 2014
New Revision: 202169
URL: http://llvm.org/viewvc/llvm-project?rev=202169&view=rev
Log:
Update for llvm api change.
Modified:
dragonegg/trunk/src/Backend.cpp
Modified: dragonegg/trunk/src/Backend.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/Backend.cpp?rev=202169&r1=202168&r2=202169&view=diff
==============================================================================
--- dragonegg/trunk/src/Backend.cpp (original)
+++ dragonegg/trunk/src/Backend.cpp Tue Feb 25 11:30:37 2014
@@ -693,7 +693,7 @@ static void createPerFunctionOptimizatio
// Create and set up the per-function pass manager.
// FIXME: Move the code generator to be function-at-a-time.
PerFunctionPasses = new FunctionPassManager(TheModule);
- PerFunctionPasses->add(new DataLayout(TheModule));
+ PerFunctionPasses->add(new DataLayoutPass(TheModule));
TheTarget->addAnalysisPasses(*PerFunctionPasses);
#ifndef NDEBUG
@@ -739,7 +739,7 @@ static void createPerModuleOptimizationP
return;
PerModulePasses = new PassManager();
- PerModulePasses->add(new DataLayout(TheModule));
+ PerModulePasses->add(new DataLayoutPass(TheModule));
TheTarget->addAnalysisPasses(*PerModulePasses);
Pass *InliningPass;
@@ -784,7 +784,7 @@ static void createPerModuleOptimizationP
if (PerModulePasses || 1) {
FunctionPassManager *PM = CodeGenPasses =
new FunctionPassManager(TheModule);
- PM->add(new DataLayout(*TheTarget->getDataLayout()));
+ PM->add(new DataLayoutPass(*TheTarget->getDataLayout()));
TheTarget->addAnalysisPasses(*PM);
// Request that addPassesToEmitFile run the Verifier after running
More information about the llvm-commits
mailing list