mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-03 15:36:21 +00:00
For PR797:
Update to reflect ParseException becoming ParseError (from Parser.h) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29766 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
47a53ac726
commit
40bb451c94
@ -110,8 +110,9 @@ StackerCompiler::compile(
|
||||
|
||||
if (F == 0)
|
||||
{
|
||||
throw ParseException(filename,
|
||||
"Could not open file '" + filename + "'");
|
||||
ParseError Err;
|
||||
Err.setError(filename, "Could not open file '" + filename + "'");
|
||||
throw Err;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -158,7 +158,9 @@ class StackerCompiler
|
||||
{
|
||||
if (line == -1) line = Stackerlineno;
|
||||
// TODO: column number in exception
|
||||
throw ParseException(TheInstance->CurFilename, message, line);
|
||||
ParseError Err;
|
||||
Err.setError(TheInstance->CurFilename, message, line);
|
||||
throw Err;
|
||||
}
|
||||
private:
|
||||
/// @brief Generate code to increment the stack index
|
||||
|
@ -164,7 +164,7 @@ int main(int argc, char **argv)
|
||||
}
|
||||
|
||||
WriteBytecodeToFile(M.get(), *Out);
|
||||
} catch (const ParseException &E) {
|
||||
} catch (const ParseError &E) {
|
||||
std::cerr << argv[0] << ": " << E.getMessage() << "\n";
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user