[PATCH] D54136: Prioritize the constructor call of __local_xray_dyninit()
Phabricator via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 6 03:01:44 PST 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rCRT346222: Prioritize the constructor call of __local_xray_dyninit() (authored by kamil, committed by ).
Repository:
rCRT Compiler Runtime
https://reviews.llvm.org/D54136
Files:
lib/xray/xray_init.cc
Index: lib/xray/xray_init.cc
===================================================================
--- lib/xray/xray_init.cc
+++ lib/xray/xray_init.cc
@@ -106,8 +106,8 @@
#else
// If we cannot use the .preinit_array section, we should instead use dynamic
// initialisation.
-static bool UNUSED __local_xray_dyninit = [] {
+__attribute__ ((constructor (0)))
+static void __local_xray_dyninit() {
__xray_init();
- return true;
-}();
+}
#endif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54136.172734.patch
Type: text/x-patch
Size: 447 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181106/de8579b2/attachment.bin>
More information about the llvm-commits
mailing list