diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-08-18 09:07:54 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-08-18 09:07:54 +0000 |
commit | 40bb451c94a00502358546214d6d00a7c523c31d (patch) | |
tree | e6d6c9a4b6452242808c14d21f07df4f9d57cbea /projects/Stacker/lib/compiler | |
parent | 47a53ac726ceb1ac11bc1326be3fbe095f726b0d (diff) |
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
Diffstat (limited to 'projects/Stacker/lib/compiler')
-rw-r--r-- | projects/Stacker/lib/compiler/StackerCompiler.cpp | 5 | ||||
-rw-r--r-- | projects/Stacker/lib/compiler/StackerCompiler.h | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/projects/Stacker/lib/compiler/StackerCompiler.cpp b/projects/Stacker/lib/compiler/StackerCompiler.cpp index b9e41a889c..a6d3995045 100644 --- a/projects/Stacker/lib/compiler/StackerCompiler.cpp +++ b/projects/Stacker/lib/compiler/StackerCompiler.cpp @@ -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; } } diff --git a/projects/Stacker/lib/compiler/StackerCompiler.h b/projects/Stacker/lib/compiler/StackerCompiler.h index 383e569c25..ef09cdb469 100644 --- a/projects/Stacker/lib/compiler/StackerCompiler.h +++ b/projects/Stacker/lib/compiler/StackerCompiler.h @@ -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 |