From: Bill Wendling Date: Tue, 29 Nov 2011 02:39:58 +0000 (+0000) Subject: MachO doesn't support the protected visibility. Don't default to 'global' here. ... X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6ea0467c3dda7d69b31489aea500ded09bcf9143;p=oota-llvm.git MachO doesn't support the protected visibility. Don't default to 'global' here. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145368 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/MC/MCAsmInfoDarwin.cpp b/lib/MC/MCAsmInfoDarwin.cpp index 537d0a35d92..ec1d3b141a9 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;