summaryrefslogtreecommitdiffstats
path: root/llvm/projects/Stacker/lib/compiler
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/projects/Stacker/lib/compiler')
-rw-r--r--llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp5
-rw-r--r--llvm/projects/Stacker/lib/compiler/StackerCompiler.h4
2 files changed, 6 insertions, 3 deletions
diff --git a/llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp b/llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp
index b9e41a889ce..a6d3995045b 100644
--- a/llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp
+++ b/llvm/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/llvm/projects/Stacker/lib/compiler/StackerCompiler.h b/llvm/projects/Stacker/lib/compiler/StackerCompiler.h
index 383e569c251..ef09cdb469a 100644
--- a/llvm/projects/Stacker/lib/compiler/StackerCompiler.h
+++ b/llvm/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
OpenPOWER on IntegriCloud