aboutsummaryrefslogtreecommitdiffstats
path: root/lib/AsmParser
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-02-20 17:56:02 +0000
committerChris Lattner <sabre@nondot.org>2002-02-20 17:56:02 +0000
commit0b91acf5db507f0800c1c51e85e1e3f324322ef1 (patch)
tree1adb417663ed99551aca88215d97918bc41ffb8e /lib/AsmParser
parent44d5bd91891a01dde05a470c88e857e563d69cde (diff)
downloadexternal_llvm-0b91acf5db507f0800c1c51e85e1e3f324322ef1.zip
external_llvm-0b91acf5db507f0800c1c51e85e1e3f324322ef1.tar.gz
external_llvm-0b91acf5db507f0800c1c51e85e1e3f324322ef1.tar.bz2
Change to verifier interface
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1782 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AsmParser')
-rw-r--r--lib/AsmParser/Parser.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/lib/AsmParser/Parser.cpp b/lib/AsmParser/Parser.cpp
index 4b280ef..3e55e90 100644
--- a/lib/AsmParser/Parser.cpp
+++ b/lib/AsmParser/Parser.cpp
@@ -31,15 +31,9 @@ Module *ParseAssemblyFile(const string &Filename) { // throw (ParseException)
fclose(F);
if (Result) { // Check to see that it is valid...
- std::vector<string> Errors;
- if (verify(Result, Errors)) {
- delete Result; Result = 0;
- string Message;
-
- for (unsigned i = 0; i < Errors.size(); i++)
- Message += Errors[i] + "\n";
-
- throw ParseException(Filename, Message);
+ if (verifyModule(Result)) {
+ delete Result;
+ throw ParseException(Filename, "Source file is not well formed LLVM!");
}
}
return Result;