diff options
author | Douglas Gregor <dgregor@apple.com> | 2012-05-03 23:18:44 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2012-05-03 23:18:44 +0000 |
commit | 514d3b6b93c83c0841d2f9dd7af8ecc2877fe921 (patch) | |
tree | 1774faaa5731aaca69ef47b86d4a2b633f160796 /lib/AST/DeclarationName.cpp | |
parent | 301e2e40f9d56c2fa01d3021a4d8e2d343fafd35 (diff) |
Split DeclarationName::getFETokenInfoAsVoid() into hot/cold paths and
(trivially) make DeclContext::lookup()'s const version inlinable. Good
for 0.3% on <rdar://problem/11004361>.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156126 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/DeclarationName.cpp')
-rw-r--r-- | lib/AST/DeclarationName.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/AST/DeclarationName.cpp b/lib/AST/DeclarationName.cpp index 64924ad950..324a2cbf85 100644 --- a/lib/AST/DeclarationName.cpp +++ b/lib/AST/DeclarationName.cpp @@ -323,10 +323,10 @@ Selector DeclarationName::getObjCSelector() const { return Selector(); } -void *DeclarationName::getFETokenInfoAsVoid() const { +void *DeclarationName::getFETokenInfoAsVoidSlow() const { switch (getNameKind()) { case Identifier: - return getAsIdentifierInfo()->getFETokenInfo<void>(); + llvm_unreachable("Handled by getFETokenInfoAsVoid()"); case CXXConstructorName: case CXXDestructorName: |