summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCAsmInfoDarwin.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2011-09-02 18:07:19 +0000
committerDuncan Sands <baldrick@free.fr>2011-09-02 18:07:19 +0000
commit5c04c62765a0bb6c42b5d940867a53c93734fa06 (patch)
tree38f927dc43f4e4648cb835db2b401d51acf77205 /llvm/lib/MC/MCAsmInfoDarwin.cpp
parent54e09b47996ec06c1220eb6314d0cbd47a753d24 (diff)
downloadbcm5719-llvm-5c04c62765a0bb6c42b5d940867a53c93734fa06.tar.gz
bcm5719-llvm-5c04c62765a0bb6c42b5d940867a53c93734fa06.zip
Darwin wants ctors/dtors to be ordered the other way round to linux.
llvm-svn: 139015
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 5851cb0391d..61fbd29a285 100644
--- a/llvm/lib/MC/MCAsmInfoDarwin.cpp
+++ b/llvm/lib/MC/MCAsmInfoDarwin.cpp
@@ -39,6 +39,7 @@ MCAsmInfoDarwin::MCAsmInfoDarwin() {
ZeroDirective = "\t.space\t"; // ".space N" emits N zeros.
HasMachoZeroFillDirective = true; // Uses .zerofill
HasMachoTBSSDirective = true; // Uses .tbss
+ StructorOutputOrder = Structors::PriorityOrder;
HasStaticCtorDtorReferenceInStaticMode = true;
// FIXME: Darwin 10 and newer don't need this.
OpenPOWER on IntegriCloud