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 | 11d53c129fc9c2a4510605ec0a1696f58750af52 (patch) | |
tree | aad97e04fdcaa0f1ea6cc6cbacdd11994c8c746b /lib/Target/XCore/AsmPrinter/XCoreAsmPrinter.cpp | |
parent | 355471741b00fbdb0085c6a24b1fdce0c78e84f3 (diff) | |
download | external_llvm-11d53c129fc9c2a4510605ec0a1696f58750af52.zip external_llvm-11d53c129fc9c2a4510605ec0a1696f58750af52.tar.gz external_llvm-11d53c129fc9c2a4510605ec0a1696f58750af52.tar.bz2 |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98450 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/XCore/AsmPrinter/XCoreAsmPrinter.cpp')
-rw-r--r-- | lib/Target/XCore/AsmPrinter/XCoreAsmPrinter.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Target/XCore/AsmPrinter/XCoreAsmPrinter.cpp b/lib/Target/XCore/AsmPrinter/XCoreAsmPrinter.cpp index d8a5d6b..259e038 100644 --- a/lib/Target/XCore/AsmPrinter/XCoreAsmPrinter.cpp +++ b/lib/Target/XCore/AsmPrinter/XCoreAsmPrinter.cpp @@ -54,9 +54,8 @@ namespace { const XCoreSubtarget &Subtarget; public: explicit XCoreAsmPrinter(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), Subtarget(TM.getSubtarget<XCoreSubtarget>()) {} virtual const char *getPassName() const { |