[llvm-commits] [dragonegg] r94880 - /dragonegg/trunk/llvm-backend.cpp
Duncan Sands
baldrick at free.fr
Sat Jan 30 05:06:00 PST 2010
Author: baldrick
Date: Sat Jan 30 07:06:00 2010
New Revision: 94880
URL: http://llvm.org/viewvc/llvm-project?rev=94880&view=rev
Log:
Port commit 94695 (djg) from llvm-gcc:
Remove ModuleProviders from llvm-gcc, after r94686.
Modified:
dragonegg/trunk/llvm-backend.cpp
Modified: dragonegg/trunk/llvm-backend.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/llvm-backend.cpp?rev=94880&r1=94879&r2=94880&view=diff
==============================================================================
--- dragonegg/trunk/llvm-backend.cpp (original)
+++ dragonegg/trunk/llvm-backend.cpp Sat Jan 30 07:06:00 2010
@@ -25,7 +25,6 @@
#include "llvm/DerivedTypes.h"
#include "llvm/LLVMContext.h"
#include "llvm/Module.h"
-#include "llvm/ModuleProvider.h"
#include "llvm/PassManager.h"
#include "llvm/ValueSymbolTable.h"
#include "llvm/Analysis/LoopPass.h"
@@ -625,7 +624,7 @@
// Create and set up the per-function pass manager.
// FIXME: Move the code generator to be function-at-a-time.
PerFunctionPasses =
- new FunctionPassManager(new ExistingModuleProvider(TheModule));
+ new FunctionPassManager(TheModule);
PerFunctionPasses->add(new TargetData(*TheTarget->getTargetData()));
// In -O0 if checking is disabled, we don't even have per-function passes.
@@ -752,7 +751,7 @@
// this for fast -O0 compiles!
if (PerModulePasses || 1) {
FunctionPassManager *PM = CodeGenPasses =
- new FunctionPassManager(new ExistingModuleProvider(TheModule));
+ new FunctionPassManager(TheModule);
PM->add(new TargetData(*TheTarget->getTargetData()));
CodeGenOpt::Level OptLevel = CodeGenOpt::Default;
More information about the llvm-commits
mailing list