[llvm-commits] [dragonegg] r158990 - /dragonegg/trunk/src/Backend.cpp
Rafael Espíndola
rafael.espindola at gmail.com
Fri Jun 22 06:51:11 PDT 2012
Thanks!
On 22 June 2012 08:31, Duncan Sands <baldrick at free.fr> wrote:
> 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
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list