summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/DeclarationName.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2012-05-03 23:28:32 +0000
committerDouglas Gregor <dgregor@apple.com>2012-05-03 23:28:32 +0000
commit1798cd797b503fa5c9dc02cf1d8c07db4861c226 (patch)
tree88dfb14435aa2cce9decea100b8b61be6897414f /clang/lib/AST/DeclarationName.cpp
parent28fb4fc91b0834f51af4a7fa8cf8ce9a05b60f87 (diff)
downloadbcm5719-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.cpp6
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:
OpenPOWER on IntegriCloud