mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
Change to verifier interface
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1782 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
44d5bd9189
commit
0b91acf5db
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user