projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1508f9
)
just discard the debug output from the disassembler.
author
Chris Lattner
<sabre@nondot.org>
Tue, 22 Dec 2009 22:47:43 +0000
(22:47 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 22 Dec 2009 22:47:43 +0000
(22:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91933
91177308
-0d34-0410-b5e6-
96231b3b80d8
tools/llvm-mc/HexDisassembler.cpp
patch
|
blob
|
history
diff --git
a/tools/llvm-mc/HexDisassembler.cpp
b/tools/llvm-mc/HexDisassembler.cpp
index 7435c10e92bc3d8871750cefdf4091843caa54f9..530520bde8f434f6e19c0113f4e6e05de701a5f3 100644
(file)
--- 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;
}