just discard the debug output from the disassembler.

llvm-svn: 91933
This commit is contained in:
Chris Lattner 2009-12-22 22:47:43 +00:00
parent 19fc0b753a
commit e3437b33f5
1 changed files with 2 additions and 6 deletions

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