[llvm-commits] CVS: llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp StackerCompiler.h
Reid Spencer
reid at x10sys.com
Fri Aug 18 02:08:11 PDT 2006
Changes in directory llvm/projects/Stacker/lib/compiler:
StackerCompiler.cpp updated: 1.17 -> 1.18
StackerCompiler.h updated: 1.7 -> 1.8
---
Log message:
For PR797: http://llvm.org/PR797 :
Update to reflect ParseException becoming ParseError (from Parser.h)
---
Diffs of the changes: (+6 -3)
StackerCompiler.cpp | 5 +++--
StackerCompiler.h | 4 +++-
2 files changed, 6 insertions(+), 3 deletions(-)
Index: llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp
diff -u llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp:1.17 llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp:1.18
--- llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp:1.17 Fri Jun 16 13:23:49 2006
+++ llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp Fri Aug 18 04:07:54 2006
@@ -110,8 +110,9 @@
if (F == 0)
{
- throw ParseException(filename,
- "Could not open file '" + filename + "'");
+ ParseError Err;
+ Err.setError(filename, "Could not open file '" + filename + "'");
+ throw Err;
}
}
Index: llvm/projects/Stacker/lib/compiler/StackerCompiler.h
diff -u llvm/projects/Stacker/lib/compiler/StackerCompiler.h:1.7 llvm/projects/Stacker/lib/compiler/StackerCompiler.h:1.8
--- llvm/projects/Stacker/lib/compiler/StackerCompiler.h:1.7 Sat Apr 23 16:26:10 2005
+++ llvm/projects/Stacker/lib/compiler/StackerCompiler.h Fri Aug 18 04:07:54 2006
@@ -158,7 +158,9 @@
{
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
More information about the llvm-commits
mailing list