[llvm-commits] [llvm] r109879 - /llvm/trunk/lib/Target/ARM/ARMAsmPrinter.cpp
Bob Wilson
bob.wilson at apple.com
Fri Jul 30 12:55:47 PDT 2010
Author: bwilson
Date: Fri Jul 30 14:55:47 2010
New Revision: 109879
URL: http://llvm.org/viewvc/llvm-project?rev=109879&view=rev
Log:
Add the __TEXT,__StaticInit section to the list of sections emitted at the
beginning on ARM Darwin assembly files so that it won't be placed after
debug sections. Radar 8252813.
Modified:
llvm/trunk/lib/Target/ARM/ARMAsmPrinter.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMAsmPrinter.cpp?rev=109879&r1=109878&r2=109879&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMAsmPrinter.cpp Fri Jul 30 14:55:47 2010
@@ -1165,6 +1165,12 @@
16, SectionKind::getText());
OutStreamer.SwitchSection(sect);
}
+ const MCSection *StaticInitSect =
+ OutContext.getMachOSection("__TEXT", "__StaticInit",
+ MCSectionMachO::S_REGULAR |
+ MCSectionMachO::S_ATTR_PURE_INSTRUCTIONS,
+ SectionKind::getText());
+ OutStreamer.SwitchSection(StaticInitSect);
}
}
More information about the llvm-commits
mailing list