]> granicus.if.org Git - clang/commit
Improve the AST representation of Objective-C @try/@catch/@finally
authorDouglas Gregor <dgregor@apple.com>
Fri, 23 Apr 2010 22:50:49 +0000 (22:50 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 23 Apr 2010 22:50:49 +0000 (22:50 +0000)
commit8f5e3dd32e443768d9dbbad7191e123e6733750c
tree91499ffda788228d2b75b1780257b5e7fce81f4c
parentec951e0c2fc0db00c36bc60c900331dde32c1b43
Improve the AST representation of Objective-C @try/@catch/@finally
statements. Instead of the @try having a single @catch, where all of
the @catch's were chained (using an O(n^2) algorithm nonetheless),
@try just holds an array of its @catch blocks. The resulting AST is
slightly more compact (not important) and better represents the actual
language semantics (good).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102221 91177308-0d34-0410-b5e6-96231b3b80d8
17 files changed:
include/clang/AST/StmtObjC.h
include/clang/Parse/Action.h
lib/AST/Stmt.cpp
lib/AST/StmtDumper.cpp
lib/AST/StmtPrinter.cpp
lib/CodeGen/CGObjCGNU.cpp
lib/CodeGen/CGObjCMac.cpp
lib/Frontend/PCHReaderStmt.cpp
lib/Frontend/PCHWriterStmt.cpp
lib/Frontend/RewriteObjC.cpp
lib/Parse/ParseObjc.cpp
lib/Sema/JumpDiagnostics.cpp
lib/Sema/Sema.h
lib/Sema/SemaStmt.cpp
lib/Sema/TreeTransform.h
test/PCH/objc_stmts.h [new file with mode: 0644]
test/PCH/objc_stmts.m [new file with mode: 0644]