mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
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:
parent
a1508f9514
commit
f444c06f91
@ -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
Block a user