]> granicus.if.org Git - clang/commitdiff
Obey the FIXMES!
authorDaniel Dunbar <daniel@zuster.org>
Thu, 13 Nov 2008 05:29:02 +0000 (05:29 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 13 Nov 2008 05:29:02 +0000 (05:29 +0000)
 - Resume running the always inliner pass always now that LLVM has
   been improved and functions with debug info can be inlined.
 - Remove unused header.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59223 91177308-0d34-0410-b5e6-96231b3b80d8

Driver/Backend.cpp

index aad2d0471445da6d9b655c2f6eddac2c20880b81..51613994ca97b8396aec03ec55e05208802ae197 100644 (file)
@@ -35,7 +35,6 @@
 #include "llvm/Target/TargetMachineRegistry.h"
 #include "llvm/Transforms/Scalar.h"
 #include "llvm/Transforms/IPO.h"
-#include <fstream> // FIXME: Remove
 
 using namespace clang;
 using namespace llvm;
@@ -308,10 +307,7 @@ void BackendConsumer::CreatePasses() {
     if (CompileOpts.OptimizationLevel > 1 && CompileOpts.UnitAtATime)
       PM->add(createConstantMergePass());         // Merge dup global constants 
   } else {
-    // FIXME: Remove this once LLVM doesn't break when inlining
-    // functions with debug info.
-    if (!GenerateDebugInfo)
-      PM->add(createAlwaysInlinerPass());  
+    PM->add(createAlwaysInlinerPass());  
   }
 }