summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGRTTI.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-10-22 21:05:15 +0000
committerJohn McCall <rjmccall@apple.com>2010-10-22 21:05:15 +0000
commit457a04e3ce5c0925850bb30ec152c89dd68d3ab4 (patch)
treeaa1051ba12082b33a35f7909a0b32468faf25f61 /clang/lib/CodeGen/CGRTTI.cpp
parent0196aa28ecf3a289c11548490848db40149075aa (diff)
downloadbcm5719-llvm-457a04e3ce5c0925850bb30ec152c89dd68d3ab4.tar.gz
bcm5719-llvm-457a04e3ce5c0925850bb30ec152c89dd68d3ab4.zip
Substantially revise how clang computes the visibility of a declaration to
more closely parallel the computation of linkage. This gets us to a state much closer to what gcc emits, modulo bugs, which will undoubtedly arise in abundance. llvm-svn: 117147
Diffstat (limited to 'clang/lib/CodeGen/CGRTTI.cpp')
-rw-r--r--clang/lib/CodeGen/CGRTTI.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGRTTI.cpp b/clang/lib/CodeGen/CGRTTI.cpp
index 2659bd0821a..6dad2a044e3 100644
--- a/clang/lib/CodeGen/CGRTTI.cpp
+++ b/clang/lib/CodeGen/CGRTTI.cpp
@@ -113,7 +113,7 @@ public:
}
if (const RecordType *RT = Ty->getAs<RecordType>())
if (const CXXRecordDecl *RD = dyn_cast<CXXRecordDecl>(RT->getDecl()))
- return CGM.getDeclVisibilityMode(RD) == LangOptions::Hidden;
+ return RD->getVisibility() == HiddenVisibility;
return false;
}
OpenPOWER on IntegriCloud