[llvm-commits] [dragonegg] r159115 - /dragonegg/trunk/src/Backend.cpp

Duncan Sands baldrick at free.fr
Sun Jun 24 08:27:17 PDT 2012


Author: baldrick
Date: Sun Jun 24 10:27:17 2012
New Revision: 159115

URL: http://llvm.org/viewvc/llvm-project?rev=159115&view=rev
Log:
Completely remove some dead code.  This was causing problems when compiled with
clang at -O0 since the code wasn't being eliminated, causing a link time failure
as the plugin isn't linked with the library containing createBitcodeWriterPass.

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=159115&r1=159114&r2=159115&view=diff
==============================================================================
--- dragonegg/trunk/src/Backend.cpp (original)
+++ dragonegg/trunk/src/Backend.cpp Sun Jun 24 10:27:17 2012
@@ -718,12 +718,7 @@
   PassBuilder.Inliner = InliningPass;
   PassBuilder.populateModulePassManager(*PerModulePasses);
 
-  if (EmitIR && 0) {
-    // Emit an LLVM .bc file to the output.  This is used when passed
-    // -emit-llvm -c to the GCC driver.
-    InitializeOutputStreams(true);
-    PerModulePasses->add(createBitcodeWriterPass(*OutStream));
-  } else if (EmitIR) {
+  if (EmitIR) {
     // Emit an LLVM .ll file to the output.  This is used when passed
     // -emit-llvm -S to the GCC driver.
     InitializeOutputStreams(false);





More information about the llvm-commits mailing list