[compiler-rt] 11c1100 - [ORC-RT] Separate jit-dispach tag decls from definitions.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 19 05:11:10 PDT 2021
Author: Lang Hames
Date: 2021-07-19T22:10:51+10:00
New Revision: 11c11006d70b0d1cf182a4b0cfa665c74cba2e30
URL: https://github.com/llvm/llvm-project/commit/11c11006d70b0d1cf182a4b0cfa665c74cba2e30
DIFF: https://github.com/llvm/llvm-project/commit/11c11006d70b0d1cf182a4b0cfa665c74cba2e30.diff
LOG: [ORC-RT] Separate jit-dispach tag decls from definitions.
This should eliminate the "initialized and declared 'extern'" warnings produced
on some bots, e.g. https://lab.llvm.org/buildbot/#/builders/165/builds/3770
Added:
Modified:
compiler-rt/lib/orc/macho_platform.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/orc/macho_platform.cpp b/compiler-rt/lib/orc/macho_platform.cpp
index cd6fbcfe463f..c9792f3a7599 100644
--- a/compiler-rt/lib/orc/macho_platform.cpp
+++ b/compiler-rt/lib/orc/macho_platform.cpp
@@ -25,9 +25,14 @@ using namespace __orc_rt;
using namespace __orc_rt::macho;
// Declare function tags for functions in the JIT process.
-extern "C" char __orc_rt_macho_get_initializers_tag = 0;
-extern "C" char __orc_rt_macho_get_deinitializers_tag = 0;
-extern "C" char __orc_rt_macho_symbol_lookup_tag = 0;
+extern "C" char __orc_rt_macho_get_initializers_tag;
+char __orc_rt_macho_get_initializers_tag = 0;
+
+extern "C" char __orc_rt_macho_get_deinitializers_tag;
+char __orc_rt_macho_get_deinitializers_tag = 0;
+
+extern "C" char __orc_rt_macho_symbol_lookup_tag;
+char __orc_rt_macho_symbol_lookup_tag = 0;
// eh-frame registration functions.
// We expect these to be available for all processes.
More information about the llvm-commits
mailing list