[cfe-commits] r66121 - /cfe/trunk/lib/Parse/ParseObjc.cpp

Chris Lattner sabre at nondot.org
Wed Mar 4 18:03:49 PST 2009


Author: lattner
Date: Wed Mar  4 20:03:49 2009
New Revision: 66121

URL: http://llvm.org/viewvc/llvm-project?rev=66121&view=rev
Log:
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 


Modified:
    cfe/trunk/lib/Parse/ParseObjc.cpp

Modified: cfe/trunk/lib/Parse/ParseObjc.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/ParseObjc.cpp?rev=66121&r1=66120&r2=66121&view=diff

==============================================================================
--- cfe/trunk/lib/Parse/ParseObjc.cpp (original)
+++ cfe/trunk/lib/Parse/ParseObjc.cpp Wed Mar  4 20:03:49 2009
@@ -1355,6 +1355,11 @@
 ///
 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();





More information about the cfe-commits mailing list