diff options
author | John McCall <rjmccall@apple.com> | 2010-10-30 11:50:40 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-10-30 11:50:40 +0000 |
commit | c273f241960cfcc402153a0fda38d0977bf00fd2 (patch) | |
tree | c19be5013fdac74000a87e3a2613fed484e6b965 /clang/lib/CodeGen/CodeGenModule.h | |
parent | 36cd5cc1507cb06b281ea7712913ed90899215b1 (diff) | |
download | bcm5719-llvm-c273f241960cfcc402153a0fda38d0977bf00fd2.tar.gz bcm5719-llvm-c273f241960cfcc402153a0fda38d0977bf00fd2.zip |
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
llvm-svn: 117781
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h index 683f175737d..681ab0a008d 100644 --- a/clang/lib/CodeGen/CodeGenModule.h +++ b/clang/lib/CodeGen/CodeGenModule.h @@ -259,12 +259,13 @@ public: /// setGlobalVisibility - Set the visibility for the given LLVM /// GlobalValue. - void setGlobalVisibility(llvm::GlobalValue *GV, const NamedDecl *D) const; + void setGlobalVisibility(llvm::GlobalValue *GV, const NamedDecl *D, + bool IsForDefinition) const; /// setTypeVisibility - Set the visibility for the given global /// value which holds information about a type. void setTypeVisibility(llvm::GlobalValue *GV, const CXXRecordDecl *D, - bool IsForRTTI) const; + bool IsForRTTI, bool IsForDefinition) const; llvm::Constant *GetAddrOfGlobal(GlobalDecl GD) { if (isa<CXXConstructorDecl>(GD.getDecl())) |