diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2008-10-12 16:14:48 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2008-10-12 16:14:48 +0000 |
commit | 42220c5432c141d47cc8ce786e472b49dc907378 (patch) | |
tree | 501befa74c29dbbe7118b54096a7c66f2b0f76d9 /lib/AST/TypeSerialization.cpp | |
parent | 99bd46c018ece10d6541a4b6bf0dbe97ad162477 (diff) |
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
Diffstat (limited to 'lib/AST/TypeSerialization.cpp')
0 files changed, 0 insertions, 0 deletions