diff options
author | Chris Lattner <sabre@nondot.org> | 2002-02-20 17:56:02 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-02-20 17:56:02 +0000 |
commit | 8280bf59e08b8496614f3cbf24e4cb42d2ad911c (patch) | |
tree | 52b74a1428f270f5026d523d25de3b71b9be197e | |
parent | d02f08dec99f1872dbb58de746b9816ec726d2b6 (diff) | |
download | bcm5719-llvm-8280bf59e08b8496614f3cbf24e4cb42d2ad911c.tar.gz bcm5719-llvm-8280bf59e08b8496614f3cbf24e4cb42d2ad911c.zip |
Change to verifier interface
llvm-svn: 1782
-rw-r--r-- | llvm/lib/AsmParser/Parser.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/llvm/lib/AsmParser/Parser.cpp b/llvm/lib/AsmParser/Parser.cpp index 4b280efd7d0..3e55e90461f 100644 --- a/llvm/lib/AsmParser/Parser.cpp +++ b/llvm/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; |