diff options
author | Chris Lattner <sabre@nondot.org> | 2002-02-04 15:53:23 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-02-04 15:53:23 +0000 |
commit | 59ba109d9dfe37f27fd1d0c993a323c43fe0e49c (patch) | |
tree | c0ec273d312599391cdec684edc29484dd8129a8 | |
parent | 28a7aa0e64b5eccb57aaabdc5d731583443edaf7 (diff) |
EmitAssembly doesn't need an UltraSparc, it can do with any TargetMachine
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1680 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/SparcV9/SparcV9AsmPrinter.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Target/SparcV9/SparcV9AsmPrinter.cpp b/lib/Target/SparcV9/SparcV9AsmPrinter.cpp index 6159f98e9b..517420730a 100644 --- a/lib/Target/SparcV9/SparcV9AsmPrinter.cpp +++ b/lib/Target/SparcV9/SparcV9AsmPrinter.cpp @@ -40,7 +40,7 @@ class AsmPrinter { ValIdMap valToIdMap; // used for values not handled by SlotCalculator public: std::ostream &toAsm; - const UltraSparc &Target; + const TargetMachine &Target; enum Sections { Unknown, @@ -50,7 +50,7 @@ public: UninitRWData, } CurSection; - AsmPrinter(std::ostream &os, const UltraSparc &T) + AsmPrinter(std::ostream &os, const TargetMachine &T) : Table(0), toAsm(os), Target(T), CurSection(Unknown) {} @@ -164,7 +164,7 @@ public: //===----------------------------------------------------------------------===// struct SparcMethodAsmPrinter : public MethodPass, public AsmPrinter { - inline SparcMethodAsmPrinter(std::ostream &os, const UltraSparc &t) + inline SparcMethodAsmPrinter(std::ostream &os, const TargetMachine &t) : AsmPrinter(os, t) {} virtual bool doInitialization(Module *M) { @@ -392,7 +392,7 @@ namespace { class SparcModuleAsmPrinter : public Pass, public AsmPrinter { public: - SparcModuleAsmPrinter(ostream &os, UltraSparc &t) : AsmPrinter(os, t) {} + SparcModuleAsmPrinter(ostream &os, TargetMachine &t) : AsmPrinter(os, t) {} virtual bool run(Module *M) { startModule(M); |