aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 1e7defa794..8d9094c4c3 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;
}