diff options
author | Anders Carlsson <andersca@mac.com> | 2011-01-29 20:59:35 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2011-01-29 20:59:35 +0000 |
commit | 537fdceded86b5c4c06eb0ac0ff80189c82d7193 (patch) | |
tree | 18779ab4c66b5c172203f79bc3f41e1296ea0e96 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 46fcf9f0b741b63e77b4aec5069b17ef2bdf4464 (diff) | |
download | bcm5719-llvm-537fdceded86b5c4c06eb0ac0ff80189c82d7193.tar.gz bcm5719-llvm-537fdceded86b5c4c06eb0ac0ff80189c82d7193.zip |
Move GetLLVMVisibility to CodeGenModule.
llvm-svn: 124550
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 41f499e5252..acf2592c249 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -164,17 +164,6 @@ void CodeGenModule::ErrorUnsupported(const Decl *D, const char *Type, getDiags().Report(Context.getFullLoc(D->getLocation()), DiagID) << Msg; } -static llvm::GlobalValue::VisibilityTypes GetLLVMVisibility(Visibility V) { - switch (V) { - case DefaultVisibility: return llvm::GlobalValue::DefaultVisibility; - case HiddenVisibility: return llvm::GlobalValue::HiddenVisibility; - case ProtectedVisibility: return llvm::GlobalValue::ProtectedVisibility; - } - llvm_unreachable("unknown visibility!"); - return llvm::GlobalValue::DefaultVisibility; -} - - void CodeGenModule::setGlobalVisibility(llvm::GlobalValue *GV, const NamedDecl *D) const { // Internal definitions always have default visibility. |