summaryrefslogtreecommitdiffstats
path: root/tools
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
commitccbb3bd6e46e13c63ffbdc21684f9df513960688 (patch)
tree7ab59cdf8d5401c778be9ecc8f20ca624c8b32b8 /tools
parente20a5dd3438bd590cc1bc86e6bc3192bb37ef2a4 (diff)
downloadexternal_llvm-ccbb3bd6e46e13c63ffbdc21684f9df513960688.zip
external_llvm-ccbb3bd6e46e13c63ffbdc21684f9df513960688.tar.gz
external_llvm-ccbb3bd6e46e13c63ffbdc21684f9df513960688.tar.bz2
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
Diffstat (limited to 'tools')
-rw-r--r--tools/gccas/gccas.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/gccas/gccas.cpp b/tools/gccas/gccas.cpp
index fbb8f77..e0b5cd5 100644
--- a/tools/gccas/gccas.cpp
+++ b/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