mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-29 14:40:25 +00:00
Raise pass requires an explicit TargetData member now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3020 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e20a5dd343
commit
ccbb3bd6e4
@ -17,12 +17,16 @@
|
||||
#include "llvm/Transforms/Scalar.h"
|
||||
#include "llvm/Analysis/Verifier.h"
|
||||
#include "llvm/Bytecode/WriteBytecodePass.h"
|
||||
#include "llvm/Target/TargetData.h"
|
||||
#include "Support/CommandLine.h"
|
||||
#include "Support/Signals.h"
|
||||
#include <memory>
|
||||
#include <fstream>
|
||||
using std::cerr;
|
||||
|
||||
// FIXME: This should eventually be parameterized...
|
||||
static TargetData TD("opt target");
|
||||
|
||||
static cl::opt<string>
|
||||
InputFilename(cl::Positional, cl::desc("<input llvm assembly>"), cl::Required);
|
||||
|
||||
@ -74,7 +78,7 @@ void AddConfiguredTransformationPasses(PassManager &PM) {
|
||||
// transformation to stop right before it runs.
|
||||
if (StopAtLevelRaise) return;
|
||||
|
||||
addPass(PM, createRaisePointerReferencesPass());// Eliminate casts
|
||||
addPass(PM, createRaisePointerReferencesPass(TD));// Eliminate casts
|
||||
addPass(PM, createPromoteMemoryToRegister()); // Promote alloca's to regs
|
||||
// Disabling until this is fixed -- Vikram, 7/7/02.
|
||||
// addPass(PM, createReassociatePass()); // Reassociate expressions
|
||||
|
Loading…
Reference in New Issue
Block a user