summaryrefslogtreecommitdiff
path: root/lib/MC
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2011-11-29 02:39:58 +0000
committerBill Wendling <isanbard@gmail.com>2011-11-29 02:39:58 +0000
commit6ea0467c3dda7d69b31489aea500ded09bcf9143 (patch)
tree78600f1d3cc7e47cec4fb792b26496e2a1501280 /lib/MC
parentecb35ece5c42d89057da3c2c7bc2e95f08b1dbef (diff)
downloadllvm-6ea0467c3dda7d69b31489aea500ded09bcf9143.tar.gz
llvm-6ea0467c3dda7d69b31489aea500ded09bcf9143.tar.bz2
llvm-6ea0467c3dda7d69b31489aea500ded09bcf9143.tar.xz
MachO doesn't support the protected visibility. Don't default to 'global' here. <rdar://problem/10396775>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145368 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC')
-rw-r--r--lib/MC/MCAsmInfoDarwin.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/MC/MCAsmInfoDarwin.cpp b/lib/MC/MCAsmInfoDarwin.cpp
index 537d0a35d9..ec1d3b141a 100644
--- a/lib/MC/MCAsmInfoDarwin.cpp
+++ b/lib/MC/MCAsmInfoDarwin.cpp
@@ -57,8 +57,9 @@ MCAsmInfoDarwin::MCAsmInfoDarwin() {
HiddenVisibilityAttr = MCSA_PrivateExtern;
HiddenDeclarationVisibilityAttr = MCSA_Invalid;
+
// Doesn't support protected visibility.
- ProtectedVisibilityAttr = MCSA_Global;
+ ProtectedVisibilityAttr = MCSA_Invalid;
HasDotTypeDotSizeDirective = false;
HasNoDeadStrip = true;