mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
Actually, use an exception to stop verification. This gives us much better
error messages because verification stops at the first error. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14794 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
00dd5cd356
commit
b3366bc37e
@ -57,9 +57,13 @@ int main(int argc, char **argv) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (!DisableVerify && verifyModule(*M.get(), PrintMessageAction)) {
|
||||
try {
|
||||
if (!DisableVerify)
|
||||
verifyModule(*M.get(), ThrowExceptionAction);
|
||||
} catch (const std::string &Err) {
|
||||
std::cerr << argv[0]
|
||||
<< ": assembly parsed, but does not verify as correct!\n";
|
||||
std::cerr << Err;
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user