summaryrefslogtreecommitdiff
path: root/dragonegg
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2014-01-12 16:11:43 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2014-01-12 16:11:43 +0000
commit32682802606acca9324e02820931c1c4f71a91d5 (patch)
treeb2fc6ed6c6461a9ec2db6d4c811bc97a090e1d26 /dragonegg
parenta615b73ea3678de0784c845ee65ae098252e4988 (diff)
Backend.cpp: Fix build corresponding to chandlerc's changes.
Diffstat (limited to 'dragonegg')
-rw-r--r--dragonegg/src/Backend.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/dragonegg/src/Backend.cpp b/dragonegg/src/Backend.cpp
index e3a4dfcb6ce..af3b707ac42 100644
--- a/dragonegg/src/Backend.cpp
+++ b/dragonegg/src/Backend.cpp
@@ -35,9 +35,9 @@
#include "llvm/Bitcode/ReaderWriter.h"
#include "llvm/CodeGen/RegAllocRegistry.h"
#include "llvm/IR/DataLayout.h"
+#include "llvm/IR/IRPrintingPasses.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/Module.h"
-#include "llvm/IR/PrintModulePass.h"
#include "llvm/MC/SubtargetFeature.h"
#include "llvm/PassManager.h"
#include "llvm/Support/ManagedStatic.h"
@@ -773,7 +773,7 @@ static void createPerModuleOptimizationPasses() {
// Emit an LLVM .ll file to the output. This is used when passed
// -emit-llvm -S to the GCC driver.
InitializeOutputStreams(false);
- PerModulePasses->add(createPrintModulePass(OutStream));
+ PerModulePasses->add(createPrintModulePass(*OutStream));
} else {
// If there are passes we have to run on the entire module, we do codegen
// as a separate "pass" after that happens.