]> granicus.if.org Git - clang/commit
Better solution: calculate the visibility of functions and variables
authorJohn McCall <rjmccall@apple.com>
Sat, 30 Oct 2010 11:50:40 +0000 (11:50 +0000)
committerJohn McCall <rjmccall@apple.com>
Sat, 30 Oct 2010 11:50:40 +0000 (11:50 +0000)
commitaf14603ca61757cf4361b583b45639a04c57e651
tree1b30c5de4e2e97f57485ed3c04b466be8f7f6938
parentee30102a9ef32cdbf0afe0e4c07a53d265a18f98
Better solution:  calculate the visibility of functions and variables
independently of whether they're definitions, then teach IR generation to
ignore non-explicit visibility when emitting declarations.  Use this to
make sure that RTTI, vtables, and VTTs get the right visibility.

More of rdar://problem/8613093

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@117781 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Decl.h
lib/AST/Decl.cpp
lib/AST/Type.cpp
lib/CodeGen/CGRTTI.cpp
lib/CodeGen/CGVTT.cpp
lib/CodeGen/CGVTables.cpp
lib/CodeGen/CodeGenModule.cpp
lib/CodeGen/CodeGenModule.h
test/CodeGenCXX/visibility.cpp