diff options
author | Chris Lattner <sabre@nondot.org> | 2010-03-13 20:55:24 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-03-13 20:55:24 +0000 |
commit | e468f88b26f55e3f42a4870c2756c0184e8a4eb4 (patch) | |
tree | 2a14c7162ae3fcea85714c861124208e0dea8d90 /llvm/lib/Target/Alpha/AsmPrinter/AlphaAsmPrinter.cpp | |
parent | 754d2dc041253009cc6be9aff028f9300740dbfc (diff) | |
download | bcm5719-llvm-e468f88b26f55e3f42a4870c2756c0184e8a4eb4.tar.gz bcm5719-llvm-e468f88b26f55e3f42a4870c2756c0184e8a4eb4.zip |
rearrange MCContext ownership. Before LLVMTargetMachine created it
and passing off ownership to AsmPrinter. Now MachineModuleInfo
creates it and owns it by value. This allows us to use MCSymbols
more consistently throughout the rest of the code generator, and
simplifies a bit of code. This also allows MachineFunction to
keep an MCContext reference handy, and cleans up the TargetRegistry
interfaces for AsmPrinters.
llvm-svn: 98450
Diffstat (limited to 'llvm/lib/Target/Alpha/AsmPrinter/AlphaAsmPrinter.cpp')
-rw-r--r-- | llvm/lib/Target/Alpha/AsmPrinter/AlphaAsmPrinter.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Target/Alpha/AsmPrinter/AlphaAsmPrinter.cpp b/llvm/lib/Target/Alpha/AsmPrinter/AlphaAsmPrinter.cpp index 629b2a1baee..08ddcdd74d1 100644 --- a/llvm/lib/Target/Alpha/AsmPrinter/AlphaAsmPrinter.cpp +++ b/llvm/lib/Target/Alpha/AsmPrinter/AlphaAsmPrinter.cpp @@ -38,9 +38,8 @@ namespace { /// explicit AlphaAsmPrinter(formatted_raw_ostream &o, TargetMachine &tm, - MCContext &Ctx, MCStreamer &Streamer, - const MCAsmInfo *T) - : AsmPrinter(o, tm, Ctx, Streamer, T) {} + MCStreamer &Streamer) + : AsmPrinter(o, tm, Streamer) {} virtual const char *getPassName() const { return "Alpha Assembly Printer"; |