1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

Change to verifier interface

llvm-svn: 1782
This commit is contained in:
Chris Lattner 2002-02-20 17:56:02 +00:00
parent 75c1ff0221
commit 1b91bcee90

View File

@ -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;