[dragonegg] r199056 - Backend.cpp: Fix build corresponding to chandlerc's changes.

NAKAMURA Takumi geek4civic at gmail.com
Sun Jan 12 08:11:43 PST 2014


Author: chapuni
Date: Sun Jan 12 10:11:43 2014
New Revision: 199056

URL: http://llvm.org/viewvc/llvm-project?rev=199056&view=rev
Log:
Backend.cpp: Fix build corresponding to chandlerc's changes.

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=199056&r1=199055&r2=199056&view=diff
==============================================================================
--- dragonegg/trunk/src/Backend.cpp (original)
+++ dragonegg/trunk/src/Backend.cpp Sun Jan 12 10:11:43 2014
@@ -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 createPerModuleOptimizationP
     // 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.





More information about the llvm-commits mailing list