[llvm-commits] CVS: llvm/tools/llvm-as/llvm-as.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Jul 6 11:01:15 PDT 2006
Changes in directory llvm/tools/llvm-as:
llvm-as.cpp updated: 1.45 -> 1.46
---
Log message:
Change the verifier to never throw an exception. Instead verifyModule canoptionally return the string error, which is an easier api for clients touse anyway.
---
Diffs of the changes: (+8 -8)
llvm-as.cpp | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
Index: llvm/tools/llvm-as/llvm-as.cpp
diff -u llvm/tools/llvm-as/llvm-as.cpp:1.45 llvm/tools/llvm-as/llvm-as.cpp:1.46
--- llvm/tools/llvm-as/llvm-as.cpp:1.45 Mon May 29 13:52:52 2006
+++ llvm/tools/llvm-as/llvm-as.cpp Thu Jul 6 13:01:01 2006
@@ -63,14 +63,14 @@
return 1;
}
- 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;
+ if (!DisableVerify) {
+ std::string Err;
+ if (verifyModule(*M.get(), ReturnStatusAction, &Err)) {
+ std::cerr << argv[0]
+ << ": assembly parsed, but does not verify as correct!\n";
+ std::cerr << Err;
+ return 1;
+ }
}
if (DumpAsm) std::cerr << "Here's the assembly:\n" << *M.get();
More information about the llvm-commits
mailing list