summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCAsmInfoDarwin.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-23 06:53:23 +0000
committerChris Lattner <sabre@nondot.org>2010-01-23 06:53:23 +0000
commit0bfd279b37c9039fb093f871f8831e85bd46649d (patch)
tree310cc81be4c6461af224d49f1d25a6bb21f45e5e /llvm/lib/MC/MCAsmInfoDarwin.cpp
parent685508cf494ee73690f77fc929382f53b157c1ca (diff)
downloadbcm5719-llvm-0bfd279b37c9039fb093f871f8831e85bd46649d.tar.gz
bcm5719-llvm-0bfd279b37c9039fb093f871f8831e85bd46649d.zip
mcize visibility directives.
llvm-svn: 94295
Diffstat (limited to 'llvm/lib/MC/MCAsmInfoDarwin.cpp')
-rw-r--r--llvm/lib/MC/MCAsmInfoDarwin.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/llvm/lib/MC/MCAsmInfoDarwin.cpp b/llvm/lib/MC/MCAsmInfoDarwin.cpp
index a66a83d0144..8495aa44eca 100644
--- a/llvm/lib/MC/MCAsmInfoDarwin.cpp
+++ b/llvm/lib/MC/MCAsmInfoDarwin.cpp
@@ -32,12 +32,16 @@ MCAsmInfoDarwin::MCAsmInfoDarwin() {
// Directives:
WeakDefDirective = "\t.weak_definition ";
WeakRefDirective = "\t.weak_reference ";
- HiddenDirective = "\t.private_extern ";
ZeroDirective = "\t.space\t"; // ".space N" emits N zeros.
HasMachoZeroFillDirective = true; // Uses .zerofill
HasStaticCtorDtorReferenceInStaticMode = true;
SetDirective = "\t.set";
- ProtectedDirective = "\t.globl\t";
+
+ HiddenVisibilityAttr = MCSA_PrivateExtern;
+ // Doesn't support protected visibility.
+ ProtectedVisibilityAttr = MCSA_Global;
+
+
HasDotTypeDotSizeDirective = false;
HasNoDeadStrip = true;
// Note: Even though darwin has the .lcomm directive, it is just a synonym for
OpenPOWER on IntegriCloud