summaryrefslogtreecommitdiff
path: root/lib/MC/MCAsmInfoDarwin.cpp
diff options
context:
space:
mode:
authorDavid Fang <fang@csl.cornell.edu>2013-12-10 21:37:41 +0000
committerDavid Fang <fang@csl.cornell.edu>2013-12-10 21:37:41 +0000
commitb59d46efa521801a3d42fc5f53fedf3e81b070ce (patch)
treeeccfa9fd87dd702c6d1e88841a72c3b406e96a87 /lib/MC/MCAsmInfoDarwin.cpp
parentb2282508d347bdb7bb5cd21c482de13c4cf90f0f (diff)
downloadllvm-b59d46efa521801a3d42fc5f53fedf3e81b070ce.tar.gz
llvm-b59d46efa521801a3d42fc5f53fedf3e81b070ce.tar.bz2
llvm-b59d46efa521801a3d42fc5f53fedf3e81b070ce.tar.xz
on darwin<10, fallback to .weak_definition (PPC,X86)
.weak_def_can_be_hidden was not yet supported by the system assembler git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196970 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCAsmInfoDarwin.cpp')
-rw-r--r--lib/MC/MCAsmInfoDarwin.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/MC/MCAsmInfoDarwin.cpp b/lib/MC/MCAsmInfoDarwin.cpp
index 612ca87f36..a04ffcb7d6 100644
--- a/lib/MC/MCAsmInfoDarwin.cpp
+++ b/lib/MC/MCAsmInfoDarwin.cpp
@@ -36,6 +36,7 @@ MCAsmInfoDarwin::MCAsmInfoDarwin() {
// Directives:
HasWeakDefDirective = true;
+ HasWeakDefCanBeHiddenDirective = true;
WeakRefDirective = "\t.weak_reference ";
ZeroDirective = "\t.space\t"; // ".space N" emits N zeros.
HasMachoZeroFillDirective = true; // Uses .zerofill