mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-13 22:58:50 +00:00
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:
parent
5e70addcea
commit
70f03681e8
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user