just discard the debug output from the disassembler.
llvm-svn: 91933
This commit is contained in:
parent
19fc0b753a
commit
e3437b33f5
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue