diff options
author | Chris Lattner <sabre@nondot.org> | 2010-01-19 04:34:02 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-01-19 04:34:02 +0000 |
commit | 71eae713153e564ec743c5c4162ff258c255de78 (patch) | |
tree | 01b79de1395d38dbeefafc085c6255b8d688aa5e /lib/MC | |
parent | a756b1d914eaf4ad610d29398e5831b394bd1547 (diff) | |
download | llvm-71eae713153e564ec743c5c4162ff258c255de78.tar.gz llvm-71eae713153e564ec743c5c4162ff258c255de78.tar.bz2 llvm-71eae713153e564ec743c5c4162ff258c255de78.tar.xz |
move production of .reference directives for static ctor/dtor list on
darwin into common code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93849 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC')
-rw-r--r-- | lib/MC/MCAsmInfo.cpp | 1 | ||||
-rw-r--r-- | lib/MC/MCAsmInfoDarwin.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/MC/MCAsmInfo.cpp b/lib/MC/MCAsmInfo.cpp index 6e8cd0ce8d..277a09e9e9 100644 --- a/lib/MC/MCAsmInfo.cpp +++ b/lib/MC/MCAsmInfo.cpp @@ -20,6 +20,7 @@ using namespace llvm; MCAsmInfo::MCAsmInfo() { HasMachoZeroFillDirective = false; + HasStaticCtorDtorReferenceInStaticMode = false; NonexecutableStackDirective = 0; NeedsSet = false; MaxInstLength = 4; diff --git a/lib/MC/MCAsmInfoDarwin.cpp b/lib/MC/MCAsmInfoDarwin.cpp index 8719bee89b..5de86e0c90 100644 --- a/lib/MC/MCAsmInfoDarwin.cpp +++ b/lib/MC/MCAsmInfoDarwin.cpp @@ -36,6 +36,7 @@ MCAsmInfoDarwin::MCAsmInfoDarwin() { LCOMMDirective = "\t.lcomm\t"; ZeroDirective = "\t.space\t"; // ".space N" emits N zeros. HasMachoZeroFillDirective = true; // Uses .zerofill + HasStaticCtorDtorReferenceInStaticMode = true; SetDirective = "\t.set"; ProtectedDirective = "\t.globl\t"; HasDotTypeDotSizeDirective = false; |