diff options
author | Douglas Gregor <dgregor@apple.com> | 2012-05-03 23:28:32 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2012-05-03 23:28:32 +0000 |
commit | 1798cd797b503fa5c9dc02cf1d8c07db4861c226 (patch) | |
tree | 88dfb14435aa2cce9decea100b8b61be6897414f /clang/lib/AST/DeclarationName.cpp | |
parent | 28fb4fc91b0834f51af4a7fa8cf8ce9a05b60f87 (diff) | |
download | bcm5719-llvm-1798cd797b503fa5c9dc02cf1d8c07db4861c226.tar.gz bcm5719-llvm-1798cd797b503fa5c9dc02cf1d8c07db4861c226.zip |
Inline DenseMapInfo<clang::DeclarationName>::getHashValue() for a 0.4% speedup on <rdar://problem/11004361>
llvm-svn: 156129
Diffstat (limited to 'clang/lib/AST/DeclarationName.cpp')
-rw-r--r-- | clang/lib/AST/DeclarationName.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/clang/lib/AST/DeclarationName.cpp b/clang/lib/AST/DeclarationName.cpp index 324a2cbf856..895cd5193a0 100644 --- a/clang/lib/AST/DeclarationName.cpp +++ b/clang/lib/AST/DeclarationName.cpp @@ -481,12 +481,6 @@ DeclarationNameTable::getCXXLiteralOperatorName(IdentifierInfo *II) { return DeclarationName(LiteralName); } -unsigned -llvm::DenseMapInfo<clang::DeclarationName>:: -getHashValue(clang::DeclarationName N) { - return DenseMapInfo<void*>::getHashValue(N.getAsOpaquePtr()); -} - DeclarationNameLoc::DeclarationNameLoc(DeclarationName Name) { switch (Name.getNameKind()) { case DeclarationName::Identifier: |