aboutsummaryrefslogtreecommitdiffstats
path: root/tools/llc
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-01-31 00:46:45 +0000
committerChris Lattner <sabre@nondot.org>2002-01-31 00:46:45 +0000
commitcd50d3fafabec10c09f3ed0466924a951943d6d0 (patch)
treea2dcdba9b30730a40f6edb631e3a7c5b49421a04 /tools/llc
parent0f3bfffd9e0b59cd4e4e6c75a06bbf5746b0195f (diff)
downloadexternal_llvm-cd50d3fafabec10c09f3ed0466924a951943d6d0.zip
external_llvm-cd50d3fafabec10c09f3ed0466924a951943d6d0.tar.gz
external_llvm-cd50d3fafabec10c09f3ed0466924a951943d6d0.tar.bz2
PassManager is now in its own header file
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
Diffstat (limited to 'tools/llc')
-rw-r--r--tools/llc/llc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/llc/llc.cpp b/tools/llc/llc.cpp
index 1e7defa..8d9094c 100644
--- a/tools/llc/llc.cpp
+++ b/tools/llc/llc.cpp
@@ -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;
}