include objc method decl contexts in stack trace of crash, e.g.:

Stack dump:
0.	message.m:53:13: in compound statement ('{}')
1.	message.m:53:13: parsing Objective-C method 'xx'
2.	clang message.m 

llvm-svn: 66121
This commit is contained in:
Chris Lattner 2009-03-05 02:03:49 +00:00
parent eed256da90
commit e268b406ba
1 changed files with 5 additions and 0 deletions

View File

@ -1355,6 +1355,11 @@ Parser::OwningStmtResult Parser::ParseObjCTryStmt(SourceLocation atLoc) {
///
Parser::DeclTy *Parser::ParseObjCMethodDefinition() {
DeclTy *MDecl = ParseObjCMethodPrototype(ObjCImpDecl);
PrettyStackTraceDecl CrashInfo(MDecl, Tok.getLocation(), Actions,
PP.getSourceManager(),
"parsing Objective-C method");
// parse optional ';'
if (Tok.is(tok::semi))
ConsumeToken();