diff options
author | John McCall <rjmccall@apple.com> | 2010-10-22 21:05:15 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-10-22 21:05:15 +0000 |
commit | 457a04e3ce5c0925850bb30ec152c89dd68d3ab4 (patch) | |
tree | aa1051ba12082b33a35f7909a0b32468faf25f61 /clang/lib/CodeGen/CodeGenModule.h | |
parent | 0196aa28ecf3a289c11548490848db40149075aa (diff) | |
download | llvm-457a04e3ce5c0925850bb30ec152c89dd68d3ab4.zip llvm-457a04e3ce5c0925850bb30ec152c89dd68d3ab4.tar.gz llvm-457a04e3ce5c0925850bb30ec152c89dd68d3ab4.tar.bz2 |
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/CodeGenModule.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h index d050eea..68898cf 100644 --- a/clang/lib/CodeGen/CodeGenModule.h +++ b/clang/lib/CodeGen/CodeGenModule.h @@ -257,12 +257,9 @@ public: static void DecorateInstruction(llvm::Instruction *Inst, llvm::MDNode *TBAAInfo); - /// getDeclVisibilityMode - Compute the visibility of the decl \arg D. - LangOptions::VisibilityMode getDeclVisibilityMode(const Decl *D) const; - /// setGlobalVisibility - Set the visibility for the given LLVM /// GlobalValue. - void setGlobalVisibility(llvm::GlobalValue *GV, const Decl *D) const; + void setGlobalVisibility(llvm::GlobalValue *GV, const NamedDecl *D) const; /// setTypeVisibility - Set the visibility for the given global /// value which holds information about a type. |