mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-23 02:29:18 +00:00
reject invalid input with a caret, e.g.:
simple-tests.txt:16:1: error: invalid instruction 0xff 0xff ^ git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91898 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f27a4cd783
commit
5a99615704
@ -61,8 +61,8 @@ static bool PrintInst(const llvm::MCDisassembler &DisAsm,
|
|||||||
llvm::raw_string_ostream verboseOS(verboseOStr);
|
llvm::raw_string_ostream verboseOS(verboseOStr);
|
||||||
|
|
||||||
if (!DisAsm.getInstruction(Inst, Size, memoryObject, 0, verboseOS)) {
|
if (!DisAsm.getInstruction(Inst, Size, memoryObject, 0, verboseOS)) {
|
||||||
// FIXME: Caret.
|
SM.PrintMessage(SMLoc::getFromPointer(Bytes[0].second),
|
||||||
errs() << "error: invalid instruction\n";
|
"invalid instruction", "error");
|
||||||
errs() << "Diagnostic log:" << '\n';
|
errs() << "Diagnostic log:" << '\n';
|
||||||
errs() << verboseOS.str() << '\n';
|
errs() << verboseOS.str() << '\n';
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user