summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2006-09-07 22:06:40 +0000
committerJim Laskey <jlaskey@mac.com>2006-09-07 22:06:40 +0000
commit261779bb4505004d3b0692347331ff11088e5358 (patch)
tree10ac1ef3eac5105816555a74912d7dc400e03041 /llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp
parent0e83541f8b4e4dc5c69c7048e1c9cb601be06a33 (diff)
downloadbcm5719-llvm-261779bb4505004d3b0692347331ff11088e5358.tar.gz
bcm5719-llvm-261779bb4505004d3b0692347331ff11088e5358.zip
Make target asm info a property of the target machine.
llvm-svn: 30162
Diffstat (limited to 'llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp')
-rw-r--r--llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp b/llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp
index d709ed7342c..2ce4865404b 100644
--- a/llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp
+++ b/llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp
@@ -29,20 +29,13 @@ using namespace llvm;
namespace {
Statistic<> EmittedInsts("asm-printer", "Number of machine instrs printed");
- struct VISIBILITY_HIDDEN AlphaTargetAsmInfo : public TargetAsmInfo {
- AlphaTargetAsmInfo() {
- AlignmentIsInBytes = false;
- PrivateGlobalPrefix = "$";
- }
- };
-
struct VISIBILITY_HIDDEN AlphaAsmPrinter : public AsmPrinter {
/// Unique incrementer for label values for referencing Global values.
///
unsigned LabelNumber;
- AlphaAsmPrinter(std::ostream &o, TargetMachine &tm, TargetAsmInfo *T)
+ AlphaAsmPrinter(std::ostream &o, TargetMachine &tm, const TargetAsmInfo *T)
: AsmPrinter(o, tm, T), LabelNumber(0) {
}
@@ -82,8 +75,7 @@ namespace {
///
FunctionPass *llvm::createAlphaCodePrinterPass (std::ostream &o,
TargetMachine &tm) {
- AlphaTargetAsmInfo *TAI = new AlphaTargetAsmInfo();
- return new AlphaAsmPrinter(o, tm, TAI);
+ return new AlphaAsmPrinter(o, tm, tm.getTargetAsmInfo());
}
#include "AlphaGenAsmWriter.inc"
OpenPOWER on IntegriCloud