diff options
author | Chris Lattner <sabre@nondot.org> | 2009-12-22 22:47:43 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-12-22 22:47:43 +0000 |
commit | f444c06f911f7b3b73481721205fdc711bd7ef32 (patch) | |
tree | b27b8c9448a93f2545fe3257d50a313fb7052252 /tools/llvm-mc | |
parent | a1508f95142064b0fb767aadb21764275be71e46 (diff) | |
download | external_llvm-f444c06f911f7b3b73481721205fdc711bd7ef32.zip external_llvm-f444c06f911f7b3b73481721205fdc711bd7ef32.tar.gz external_llvm-f444c06f911f7b3b73481721205fdc711bd7ef32.tar.bz2 |
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
Diffstat (limited to 'tools/llvm-mc')
-rw-r--r-- | tools/llvm-mc/HexDisassembler.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/tools/llvm-mc/HexDisassembler.cpp b/tools/llvm-mc/HexDisassembler.cpp index 7435c10..530520b 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; } |