diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-02-02 23:37:42 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-02-02 23:37:42 +0000 |
| commit | b0d44c38077d620ff69265ec0ccd9a2c8aa39b7a (patch) | |
| tree | 599bc831e1b54f8fffd45fb217e6b52519247efd /llvm/lib/Target/Mips/AsmPrinter/MipsAsmPrinter.cpp | |
| parent | e67d01a9a8dbf25ba502411ac7319be3e6789e0e (diff) | |
| download | bcm5719-llvm-b0d44c38077d620ff69265ec0ccd9a2c8aa39b7a.tar.gz bcm5719-llvm-b0d44c38077d620ff69265ec0ccd9a2c8aa39b7a.zip | |
refactor code so that LLVMTargetMachine creates the asmstreamer and
mccontext instead of having AsmPrinter do it. This allows other
types of MCStreamer's to be passed in.
llvm-svn: 95155
Diffstat (limited to 'llvm/lib/Target/Mips/AsmPrinter/MipsAsmPrinter.cpp')
| -rw-r--r-- | llvm/lib/Target/Mips/AsmPrinter/MipsAsmPrinter.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Target/Mips/AsmPrinter/MipsAsmPrinter.cpp b/llvm/lib/Target/Mips/AsmPrinter/MipsAsmPrinter.cpp index 0371b825ec8..4118e7b8a36 100644 --- a/llvm/lib/Target/Mips/AsmPrinter/MipsAsmPrinter.cpp +++ b/llvm/lib/Target/Mips/AsmPrinter/MipsAsmPrinter.cpp @@ -50,8 +50,9 @@ namespace { const MipsSubtarget *Subtarget; public: explicit MipsAsmPrinter(formatted_raw_ostream &O, TargetMachine &TM, - const MCAsmInfo *T, bool V) - : AsmPrinter(O, TM, T, V) { + MCContext &Ctx, MCStreamer &Streamer, + const MCAsmInfo *T) + : AsmPrinter(O, TM, Ctx, Streamer, T) { Subtarget = &TM.getSubtarget<MipsSubtarget>(); } |

