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
#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>
// the specified method.
//
bool runOnMethod(Method *M) {
- if (!M->isExternal() && Target.compileMethod(M)) {
+ if (Target.compileMethod(M))
cerr << "Error compiling " << InputFilename << "!\n";
- }
return true;
}