summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit11b9894234b81356ae472dbc5e534a95fbd0f610 (patch)
treed206c4a44ba7e2d11896f490e52019f47d935e22 /llvm/lib/MC
parentd25089f8e098d71fa27c56fc0ad440fb833617ca (diff)
downloadbcm5719-llvm-11b9894234b81356ae472dbc5e534a95fbd0f610.tar.gz
bcm5719-llvm-11b9894234b81356ae472dbc5e534a95fbd0f610.zip
MachO doesn't support the protected visibility. Don't default to 'global' here. <rdar://problem/10396775>
llvm-svn: 145368
Diffstat (limited to 'llvm/lib/MC')
-rw-r--r--llvm/lib/MC/MCAsmInfoDarwin.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCAsmInfoDarwin.cpp b/llvm/lib/MC/MCAsmInfoDarwin.cpp
index 537d0a35d92..ec1d3b141a9 100644
--- a/llvm/lib/MC/MCAsmInfoDarwin.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud