summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseDecl.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-03-05 08:00:35 +0000
committerChris Lattner <sabre@nondot.org>2009-03-05 08:00:35 +0000
commiteae6cb6154b290c0cb8ce51ed321a4ceade261fc (patch)
tree77eb3799583bb3afd7cd3bde36912006ad5675c9 /clang/lib/Parse/ParseDecl.cpp
parent1d09f6a2212b69be02fc03d818dcd02620fea4d4 (diff)
downloadbcm5719-llvm-eae6cb6154b290c0cb8ce51ed321a4ceade261fc.tar.gz
bcm5719-llvm-eae6cb6154b290c0cb8ce51ed321a4ceade261fc.zip
rename PrettyStackTraceDecl -> PrettyStackTraceActionsDecl.
Introduce a new PrettyStackTraceDecl. Use it to add the top level LLVM IR generation stuff in Backend.cpp to stack traces. We now get crashes like: Stack dump: 0. Program arguments: clang t.c -emit-llvm 1. <eof> parser at end of file 2. t.c:1:5: LLVM IR generation of declaration 'a' Abort for IR generation crashes. llvm-svn: 66153
Diffstat (limited to 'clang/lib/Parse/ParseDecl.cpp')
-rw-r--r--clang/lib/Parse/ParseDecl.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp
index 6e0ffe5e2b6..50b6716df8c 100644
--- a/clang/lib/Parse/ParseDecl.cpp
+++ b/clang/lib/Parse/ParseDecl.cpp
@@ -1096,9 +1096,9 @@ ParseStructDeclaration(DeclSpec &DS,
///
void Parser::ParseStructUnionBody(SourceLocation RecordLoc,
unsigned TagType, DeclTy *TagDecl) {
- PrettyStackTraceDecl CrashInfo(TagDecl, RecordLoc, Actions,
- PP.getSourceManager(),
- "parsing struct/union body");
+ PrettyStackTraceActionsDecl CrashInfo(TagDecl, RecordLoc, Actions,
+ PP.getSourceManager(),
+ "parsing struct/union body");
SourceLocation LBraceLoc = ConsumeBrace();
OpenPOWER on IntegriCloud