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
This commit is contained in:
Chris Lattner 2009-12-22 22:47:43 +00:00
parent a1508f9514
commit f444c06f91

View File

@ -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;
}