PassManager is now in its own header file

MethodPass's now cannot be run on external methods

llvm-svn: 1609
This commit is contained in:
Chris Lattner 2002-01-31 00:46:45 +00:00
parent ad50ec2f37
commit 7139f2859b
1 changed files with 2 additions and 2 deletions

View File

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