PassManager is now in its own header file
authorChris Lattner <sabre@nondot.org>
Thu, 31 Jan 2002 00:46:45 +0000 (00:46 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 31 Jan 2002 00:46:45 +0000 (00:46 +0000)
MethodPass's now cannot be run on external methods

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

tools/llc/llc.cpp

index 1e7defa7941d654bc64d757bdcda522c6cfce71e..8d9094c4c36cd9dfb4885f9cb87a75d98c888baf 100644 (file)
@@ -15,6 +15,7 @@
 #include "llvm/Transforms/ConstantMerge.h"
 #include "llvm/Module.h"
 #include "llvm/Method.h"
+#include "llvm/PassManager.h"
 #include "Support/CommandLine.h"
 #include <memory>
 #include <string>
@@ -61,9 +62,8 @@ public:
   // the specified method.
   //
   bool runOnMethod(Method *M) {
-    if (!M->isExternal() && Target.compileMethod(M)) {
+    if (Target.compileMethod(M))
       cerr << "Error compiling " << InputFilename << "!\n";
-    }
     
     return true;
   }