[llvm-commits] [llvm] r91933 - /llvm/trunk/tools/llvm-mc/HexDisassembler.cpp
Chris Lattner
sabre at nondot.org
Tue Dec 22 14:47:43 PST 2009
Author: lattner
Date: Tue Dec 22 16:47:43 2009
New Revision: 91933
URL: http://llvm.org/viewvc/llvm-project?rev=91933&view=rev
Log:
just discard the debug output from the disassembler.
Modified:
llvm/trunk/tools/llvm-mc/HexDisassembler.cpp
Modified: llvm/trunk/tools/llvm-mc/HexDisassembler.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-mc/HexDisassembler.cpp?rev=91933&r1=91932&r2=91933&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-mc/HexDisassembler.cpp (original)
+++ llvm/trunk/tools/llvm-mc/HexDisassembler.cpp Tue Dec 22 16:47:43 2009
@@ -57,14 +57,10 @@
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;
}
More information about the llvm-commits
mailing list