[llvm-commits] [dragonegg] r158990 - /dragonegg/trunk/src/Backend.cpp
Duncan Sands
baldrick at free.fr
Fri Jun 22 05:31:15 PDT 2012
Author: baldrick
Date: Fri Jun 22 07:31:15 2012
New Revision: 158990
URL: http://llvm.org/viewvc/llvm-project?rev=158990&view=rev
Log:
Use .init_array for constructors if the target system supports it.
Modified:
dragonegg/trunk/src/Backend.cpp
Modified: dragonegg/trunk/src/Backend.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/Backend.cpp?rev=158990&r1=158989&r2=158990&view=diff
==============================================================================
--- dragonegg/trunk/src/Backend.cpp (original)
+++ dragonegg/trunk/src/Backend.cpp Fri Jun 22 07:31:15 2012
@@ -458,6 +458,11 @@
#if (GCC_MINOR > 5)
Options.EnableSegmentedStacks = flag_split_stack;
#endif
+#ifdef HAVE_INITFINI_ARRAY
+ Options.UseInitArray = true;
+#else
+ Options.UseInitArray = false;
+#endif
#ifdef LLVM_SET_TARGET_MACHINE_OPTIONS
LLVM_SET_TARGET_MACHINE_OPTIONS(Options);
#endif
More information about the llvm-commits
mailing list