From af0a2e6730ffb59405352269e1500b6e83e42d6a Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Mon, 11 Jul 2011 21:24:15 +0000 Subject: [PATCH] Most MCCodeEmitter's don't meed MCContext. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134922 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/ARM/ARMMCCodeEmitter.cpp | 3 +-- lib/Target/MBlaze/MBlazeMCCodeEmitter.cpp | 3 +-- lib/Target/PowerPC/PPCMCCodeEmitter.cpp | 4 +--- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/lib/Target/ARM/ARMMCCodeEmitter.cpp b/lib/Target/ARM/ARMMCCodeEmitter.cpp index b92e02d047b..df3a14f3a8e 100644 --- a/lib/Target/ARM/ARMMCCodeEmitter.cpp +++ b/lib/Target/ARM/ARMMCCodeEmitter.cpp @@ -40,12 +40,11 @@ class ARMMCCodeEmitter : public MCCodeEmitter { void operator=(const ARMMCCodeEmitter &); // DO NOT IMPLEMENT const MCInstrInfo &MCII; const MCSubtargetInfo &STI; - MCContext &Ctx; public: ARMMCCodeEmitter(const MCInstrInfo &mcii, const MCSubtargetInfo &sti, MCContext &ctx) - : MCII(mcii), STI(sti), Ctx(ctx) { + : MCII(mcii), STI(sti) { } ~ARMMCCodeEmitter() {} diff --git a/lib/Target/MBlaze/MBlazeMCCodeEmitter.cpp b/lib/Target/MBlaze/MBlazeMCCodeEmitter.cpp index 87f6caeb6cd..ddc636d0ce6 100644 --- a/lib/Target/MBlaze/MBlazeMCCodeEmitter.cpp +++ b/lib/Target/MBlaze/MBlazeMCCodeEmitter.cpp @@ -30,12 +30,11 @@ class MBlazeMCCodeEmitter : public MCCodeEmitter { MBlazeMCCodeEmitter(const MBlazeMCCodeEmitter &); // DO NOT IMPLEMENT void operator=(const MBlazeMCCodeEmitter &); // DO NOT IMPLEMENT const MCInstrInfo &MCII; - MCContext &Ctx; public: MBlazeMCCodeEmitter(const MCInstrInfo &mcii, const MCSubtargetInfo &sti, MCContext &ctx) - : MCII(mcii), Ctx(ctx) { + : MCII(mcii) { } ~MBlazeMCCodeEmitter() {} diff --git a/lib/Target/PowerPC/PPCMCCodeEmitter.cpp b/lib/Target/PowerPC/PPCMCCodeEmitter.cpp index 250d5455918..cf73d861fa4 100644 --- a/lib/Target/PowerPC/PPCMCCodeEmitter.cpp +++ b/lib/Target/PowerPC/PPCMCCodeEmitter.cpp @@ -28,12 +28,10 @@ namespace { class PPCMCCodeEmitter : public MCCodeEmitter { PPCMCCodeEmitter(const PPCMCCodeEmitter &); // DO NOT IMPLEMENT void operator=(const PPCMCCodeEmitter &); // DO NOT IMPLEMENT - MCContext &Ctx; public: PPCMCCodeEmitter(const MCInstrInfo &mcii, const MCSubtargetInfo &sti, - MCContext &ctx) - : Ctx(ctx) { + MCContext &ctx) { } ~PPCMCCodeEmitter() {}