summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit1b01849f2d79daad54c43dd27ec0ac691d79c6b4 (patch)
treed09d42edcb24531389df6b98baf98492053d40e6 /llvm/lib/MC/MCAsmInfoDarwin.cpp
parent17c248a7a2ee9d41a1832cf818ba9dc4f425b75f (diff)
downloadbcm5719-llvm-1b01849f2d79daad54c43dd27ec0ac691d79c6b4.tar.gz
bcm5719-llvm-1b01849f2d79daad54c43dd27ec0ac691d79c6b4.zip
on darwin<10, fallback to .weak_definition (PPC,X86)
.weak_def_can_be_hidden was not yet supported by the system assembler llvm-svn: 196970
Diffstat (limited to 'llvm/lib/MC/MCAsmInfoDarwin.cpp')
-rw-r--r--llvm/lib/MC/MCAsmInfoDarwin.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCAsmInfoDarwin.cpp b/llvm/lib/MC/MCAsmInfoDarwin.cpp
index 612ca87f36e..a04ffcb7d60 100644
--- a/llvm/lib/MC/MCAsmInfoDarwin.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud