mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 08:17:40 +00:00
Don't use PrintFatalError(which calls exit) for 'Primary decode conflict'. Just skip emitting the table. This way the main function will delete the output file instead of it remaining empty and confusing dependency checks if build is invoked a second time.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198529 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -117,9 +117,10 @@ void EmitDisassembler(RecordKeeper &Records, raw_ostream &OS) {
|
||||
for (unsigned i = 0, e = numberedInstructions.size(); i != e; ++i)
|
||||
RecognizableInstr::processInstr(Tables, *numberedInstructions[i], i);
|
||||
|
||||
if (Tables.hasConflicts())
|
||||
PrintFatalError(Target.getTargetRecord()->getLoc(),
|
||||
"Primary decode conflict");
|
||||
if (Tables.hasConflicts()) {
|
||||
PrintError(Target.getTargetRecord()->getLoc(), "Primary decode conflict");
|
||||
return;
|
||||
}
|
||||
|
||||
Tables.emit(OS);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user