summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/Decl.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2012-03-08 18:20:41 +0000
committerDaniel Dunbar <daniel@zuster.org>2012-03-08 18:20:41 +0000
commit166ea9ad8b1a4c07eb91d11c94d1e2f8e7c11ca6 (patch)
treeba49c70086913d2d0759ee3f75b1fc8a61dd31bb /clang/lib/AST/Decl.cpp
parentdf88f6fe98793d8305797f23e38d613bc6960028 (diff)
downloadbcm5719-llvm-166ea9ad8b1a4c07eb91d11c94d1e2f8e7c11ca6.tar.gz
bcm5719-llvm-166ea9ad8b1a4c07eb91d11c94d1e2f8e7c11ca6.zip
[AST] Change NamedDecl::getUnderlyingDecl() to inline the fast (and incredibly common) path.
llvm-svn: 152321
Diffstat (limited to 'clang/lib/AST/Decl.cpp')
-rw-r--r--clang/lib/AST/Decl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/Decl.cpp b/clang/lib/AST/Decl.cpp
index 63f1f16ea65..f2ac5c14a15 100644
--- a/clang/lib/AST/Decl.cpp
+++ b/clang/lib/AST/Decl.cpp
@@ -983,7 +983,7 @@ bool NamedDecl::hasLinkage() const {
return getLinkage() != NoLinkage;
}
-NamedDecl *NamedDecl::getUnderlyingDecl() {
+NamedDecl *NamedDecl::getUnderlyingDeclImpl() {
NamedDecl *ND = this;
while (true) {
if (UsingShadowDecl *UD = dyn_cast<UsingShadowDecl>(ND))
OpenPOWER on IntegriCloud