From: Eric Christopher Date: Tue, 19 Nov 2013 01:52:38 +0000 (+0000) Subject: Fix previous commit and fully remove variable. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=15602d786beee8308af765ade2e6debde2b81ad2;p=oota-llvm.git Fix previous commit and fully remove variable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195076 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/Mips/MCTargetDesc/MipsMCTargetDesc.cpp b/lib/Target/Mips/MCTargetDesc/MipsMCTargetDesc.cpp index 5548aaa9a6d..c81e9c05e00 100644 --- a/lib/Target/Mips/MCTargetDesc/MipsMCTargetDesc.cpp +++ b/lib/Target/Mips/MCTargetDesc/MipsMCTargetDesc.cpp @@ -141,7 +141,7 @@ createMCAsmStreamer(MCContext &Ctx, formatted_raw_ostream &OS, bool isVerboseAsm, bool useLoc, bool useCFI, bool useDwarfDirectory, MCInstPrinter *InstPrint, MCCodeEmitter *CE, MCAsmBackend *TAB, bool ShowInst) { - MipsTargetAsmStreamer *S = new MipsTargetAsmStreamer(OS); + MipsTargetAsmStreamer *S = new MipsTargetAsmStreamer(); return llvm::createAsmStreamer(Ctx, S, OS, isVerboseAsm, useLoc, useCFI, useDwarfDirectory, InstPrint, CE, TAB, diff --git a/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp b/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp index 16f65b4e46d..250b0af13d8 100644 --- a/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp +++ b/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp @@ -23,8 +23,7 @@ using namespace llvm; // pin vtable to this file void MipsTargetStreamer::anchor() {} -MipsTargetAsmStreamer::MipsTargetAsmStreamer(formatted_raw_ostream &OS) - : OS(OS) {} +MipsTargetAsmStreamer::MipsTargetAsmStreamer() {} void MipsTargetAsmStreamer::emitMipsHackELFFlags(unsigned Flags) { return; diff --git a/lib/Target/Mips/MipsTargetStreamer.h b/lib/Target/Mips/MipsTargetStreamer.h index d256c08a1fe..12ea3e4f9a3 100644 --- a/lib/Target/Mips/MipsTargetStreamer.h +++ b/lib/Target/Mips/MipsTargetStreamer.h @@ -23,9 +23,8 @@ public: // This part is for ascii assembly output class MipsTargetAsmStreamer : public MipsTargetStreamer { - public: - MipsTargetAsmStreamer(formatted_raw_ostream &OS); + MipsTargetAsmStreamer(); virtual void emitMipsHackELFFlags(unsigned Flags); virtual void emitSymSTO(MCSymbol *Sym, unsigned Val); };