aboutsummaryrefslogtreecommitdiffstats
path: root/tools/llvm-mc
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-12-22 22:47:43 +0000
committerChris Lattner <sabre@nondot.org>2009-12-22 22:47:43 +0000
commitf444c06f911f7b3b73481721205fdc711bd7ef32 (patch)
treeb27b8c9448a93f2545fe3257d50a313fb7052252 /tools/llvm-mc
parenta1508f95142064b0fb767aadb21764275be71e46 (diff)
downloadexternal_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.cpp8
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;
}