From: Chris Lattner Date: Mon, 4 Feb 2002 15:53:23 +0000 (+0000) Subject: EmitAssembly doesn't need an UltraSparc, it can do with any TargetMachine X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=59ba109d9dfe37f27fd1d0c993a323c43fe0e49c;p=oota-llvm.git 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 --- diff --git a/lib/Target/SparcV9/SparcV9AsmPrinter.cpp b/lib/Target/SparcV9/SparcV9AsmPrinter.cpp index 6159f98e9bc..517420730ae 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);