From: Chris Lattner Date: Tue, 22 Dec 2009 22:47:43 +0000 (+0000) Subject: just discard the debug output from the disassembler. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f444c06f911f7b3b73481721205fdc711bd7ef32;p=oota-llvm.git just discard the debug output from the disassembler. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91933 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/llvm-mc/HexDisassembler.cpp b/tools/llvm-mc/HexDisassembler.cpp index 7435c10e92b..530520bde8f 100644 --- a/tools/llvm-mc/HexDisassembler.cpp +++ b/tools/llvm-mc/HexDisassembler.cpp @@ -57,14 +57,10 @@ static bool PrintInst(const llvm::MCDisassembler &DisAsm, MCInst Inst; uint64_t Size; - std::string verboseOStr; - llvm::raw_string_ostream verboseOS(verboseOStr); - - if (!DisAsm.getInstruction(Inst, Size, memoryObject, 0, verboseOS)) { + if (!DisAsm.getInstruction(Inst, Size, memoryObject, 0, + /*REMOVE*/ nulls())) { SM.PrintMessage(SMLoc::getFromPointer(Bytes[0].second), "invalid instruction encoding", "error"); - errs() << "Diagnostic log:" << '\n'; - errs() << verboseOS.str() << '\n'; return true; }