summaryrefslogtreecommitdiffstats
path: root/llvm/tools/gccas
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-07-23 18:09:58 +0000
committerChris Lattner <sabre@nondot.org>2002-07-23 18:09:58 +0000
commit8c7b31599b420db8c66cccd8a61e781a4ef58c5c (patch)
treea4c673846fb98624320b93476ffcdbe4d8695dd5 /llvm/tools/gccas
parent00fb26cf4d691e74dc82ed5d3a6829f4c9aa2403 (diff)
downloadbcm5719-llvm-8c7b31599b420db8c66cccd8a61e781a4ef58c5c.tar.gz
bcm5719-llvm-8c7b31599b420db8c66cccd8a61e781a4ef58c5c.zip
Raise pass requires an explicit TargetData member now.
llvm-svn: 3020
Diffstat (limited to 'llvm/tools/gccas')
-rw-r--r--llvm/tools/gccas/gccas.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/tools/gccas/gccas.cpp b/llvm/tools/gccas/gccas.cpp
index fbb8f77afc6..e0b5cd51d1a 100644
--- a/llvm/tools/gccas/gccas.cpp
+++ b/llvm/tools/gccas/gccas.cpp
@@ -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
OpenPOWER on IntegriCloud