mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-10 02:36:06 +00:00
Minor cleanup.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55423 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7deb17108f
commit
505569dc9c
@ -198,23 +198,22 @@ namespace {
|
||||
/// this condition, do so.
|
||||
///
|
||||
bool abortIfBroken() {
|
||||
if (Broken) {
|
||||
msgs << "Broken module found, ";
|
||||
switch (action) {
|
||||
case AbortProcessAction:
|
||||
msgs << "compilation aborted!\n";
|
||||
cerr << msgs.str();
|
||||
abort();
|
||||
case PrintMessageAction:
|
||||
msgs << "verification continues.\n";
|
||||
cerr << msgs.str();
|
||||
return false;
|
||||
case ReturnStatusAction:
|
||||
msgs << "compilation terminated.\n";
|
||||
return Broken;
|
||||
}
|
||||
if (!Broken) return false;
|
||||
msgs << "Broken module found, ";
|
||||
switch (action) {
|
||||
default: assert(0 && "Unknown action");
|
||||
case AbortProcessAction:
|
||||
msgs << "compilation aborted!\n";
|
||||
cerr << msgs.str();
|
||||
abort();
|
||||
case PrintMessageAction:
|
||||
msgs << "verification continues.\n";
|
||||
cerr << msgs.str();
|
||||
return false;
|
||||
case ReturnStatusAction:
|
||||
msgs << "compilation terminated.\n";
|
||||
return Broken;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user