summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-08-18 09:07:54 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-08-18 09:07:54 +0000
commit2f94c5d186b744ba618db3b98df47fed04854c2a (patch)
tree054a9c99ed7d54bf987bc79787d56a1bd3df0af4 /llvm/projects
parentFix a grammaro in a comment. (diff)
downloadllvm-project-2f94c5d186b744ba618db3b98df47fed04854c2a.tar.gz
llvm-project-2f94c5d186b744ba618db3b98df47fed04854c2a.tar.bz2
llvm-project-2f94c5d186b744ba618db3b98df47fed04854c2a.zip
For PR797:
Update to reflect ParseException becoming ParseError (from Parser.h) llvm-svn: 29766
Diffstat (limited to 'llvm/projects')
-rw-r--r--llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp5
-rw-r--r--llvm/projects/Stacker/lib/compiler/StackerCompiler.h4
-rw-r--r--llvm/projects/Stacker/tools/stkrc/stkrc.cpp2
3 files changed, 7 insertions, 4 deletions
diff --git a/llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp b/llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp
index b9e41a889ce7..a6d3995045bd 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 383e569c2518..ef09cdb469a2 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
diff --git a/llvm/projects/Stacker/tools/stkrc/stkrc.cpp b/llvm/projects/Stacker/tools/stkrc/stkrc.cpp
index 647fee42a913..727b044c20fd 100644
--- a/llvm/projects/Stacker/tools/stkrc/stkrc.cpp
+++ b/llvm/projects/Stacker/tools/stkrc/stkrc.cpp
@@ -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;
}