forked from OSchip/llvm-project
When in non-raw mode and edis fails to parse the tokens of the instruction, output
the raw disassembly so that the opcode aligns with the edis'ed disassembly. llvm-svn: 131773
This commit is contained in:
parent
54254008ba
commit
e7faaa6688
|
@ -369,7 +369,16 @@ InstructionLLVM::Dump
|
|||
|
||||
if (EDGetInstString(&str, m_inst)) // 0 on success
|
||||
return;
|
||||
if (raw)
|
||||
s->Write(str, strlen(str) - 1);
|
||||
else
|
||||
{
|
||||
// EDis fails to parse the tokens of this inst. Need to align this
|
||||
// raw disassembly with the rest of output.
|
||||
llvm::StringRef raw_disasm(str);
|
||||
StripSpaces(raw_disasm);
|
||||
s->PutCString(raw_disasm.str().c_str());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue