]> granicus.if.org Git - clang/commit
Implement more efficient Decl <-> DeclContext conversions.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sun, 12 Oct 2008 16:14:48 +0000 (16:14 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sun, 12 Oct 2008 16:14:48 +0000 (16:14 +0000)
commit42220c5432c141d47cc8ce786e472b49dc907378
tree501befa74c29dbbe7118b54096a7c66f2b0f76d9
parent99bd46c018ece10d6541a4b6bf0dbe97ad162477
Implement more efficient Decl <-> DeclContext conversions.
When the static type on the Decl side is a subclass of DeclContext the compiler will use a "inlinable" static_cast, instead of always using an out-of-line function call.

Note, though, that the isa<> check still uses an out-of-line function call.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57415 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Decl.h
include/clang/AST/DeclBase.h
include/clang/AST/DeclCXX.h
include/clang/AST/DeclObjC.h
lib/AST/DeclBase.cpp