diff options
author | Bill Wendling <isanbard@gmail.com> | 2011-11-29 02:39:58 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2011-11-29 02:39:58 +0000 |
commit | 6ea0467c3dda7d69b31489aea500ded09bcf9143 (patch) | |
tree | 78600f1d3cc7e47cec4fb792b26496e2a1501280 /lib | |
parent | ecb35ece5c42d89057da3c2c7bc2e95f08b1dbef (diff) |
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')
-rw-r--r-- | lib/MC/MCAsmInfoDarwin.cpp | 3 |
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; |