diff options
author | Chris Lattner <sabre@nondot.org> | 2009-03-05 08:00:35 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-03-05 08:00:35 +0000 |
commit | eae6cb6154b290c0cb8ce51ed321a4ceade261fc (patch) | |
tree | 77eb3799583bb3afd7cd3bde36912006ad5675c9 /clang/lib/Parse/ParseStmt.cpp | |
parent | 1d09f6a2212b69be02fc03d818dcd02620fea4d4 (diff) | |
download | bcm5719-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/ParseStmt.cpp')
-rw-r--r-- | clang/lib/Parse/ParseStmt.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Parse/ParseStmt.cpp b/clang/lib/Parse/ParseStmt.cpp index cb9bdc7cfb7..fe832470823 100644 --- a/clang/lib/Parse/ParseStmt.cpp +++ b/clang/lib/Parse/ParseStmt.cpp @@ -1288,9 +1288,9 @@ Parser::DeclTy *Parser::ParseFunctionStatementBody(DeclTy *Decl) { assert(Tok.is(tok::l_brace)); SourceLocation LBraceLoc = Tok.getLocation(); - PrettyStackTraceDecl CrashInfo(Decl, LBraceLoc, Actions, - PP.getSourceManager(), - "parsing function body"); + PrettyStackTraceActionsDecl CrashInfo(Decl, LBraceLoc, Actions, + PP.getSourceManager(), + "parsing function body"); // Do not enter a scope for the brace, as the arguments are in the same scope // (the function body) as the body itself. Instead, just read the statement |