[compiler-rt] ebec955 - [ORC-RT] Add ORC_RT prefix to WEAK_IMPORT macro.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 19 18:34:25 PDT 2021
Author: Lang Hames
Date: 2021-07-20T11:30:54+10:00
New Revision: ebec95590cd117aef012192570db4dafb0c56654
URL: https://github.com/llvm/llvm-project/commit/ebec95590cd117aef012192570db4dafb0c56654
DIFF: https://github.com/llvm/llvm-project/commit/ebec95590cd117aef012192570db4dafb0c56654.diff
LOG: [ORC-RT] Add ORC_RT prefix to WEAK_IMPORT macro.
Added:
Modified:
compiler-rt/lib/orc/common.h
compiler-rt/lib/orc/compiler.h
Removed:
################################################################################
diff --git a/compiler-rt/lib/orc/common.h b/compiler-rt/lib/orc/common.h
index 6993d56cadeba..5038425f81d93 100644
--- a/compiler-rt/lib/orc/common.h
+++ b/compiler-rt/lib/orc/common.h
@@ -28,7 +28,7 @@ extern "C" void __orc_rt_log_error(const char *ErrMsg);
/// This is declared for use by the runtime, but should be implemented in the
/// executor or provided by a definition added to the JIT before the runtime
/// is loaded.
-extern "C" __orc_rt_Opaque __orc_rt_jit_dispatch_ctx WEAK_IMPORT;
+extern "C" __orc_rt_Opaque __orc_rt_jit_dispatch_ctx ORC_RT_WEAK_IMPORT;
/// For dispatching calls to the JIT object.
///
@@ -37,6 +37,6 @@ extern "C" __orc_rt_Opaque __orc_rt_jit_dispatch_ctx WEAK_IMPORT;
/// is loaded.
extern "C" __orc_rt_CWrapperFunctionResult
__orc_rt_jit_dispatch(__orc_rt_Opaque *DispatchCtx, const void *FnTag,
- const char *Data, size_t Size) WEAK_IMPORT;
+ const char *Data, size_t Size) ORC_RT_WEAK_IMPORT;
#endif // ORC_RT_COMMON_H
diff --git a/compiler-rt/lib/orc/compiler.h b/compiler-rt/lib/orc/compiler.h
index dfda45f7e16b0..2e4cd144e335c 100644
--- a/compiler-rt/lib/orc/compiler.h
+++ b/compiler-rt/lib/orc/compiler.h
@@ -57,9 +57,9 @@
#endif
#ifdef __APPLE__
-#define WEAK_IMPORT __attribute__((weak_import))
+#define ORC_RT_WEAK_IMPORT __attribute__((weak_import))
#else
-#define WEAK_IMPORT __attribute__((weak))
+#define ORC_RT_WEAK_IMPORT __attribute__((weak))
#endif
#endif // ORC_RT_COMPILER_H
More information about the llvm-commits
mailing list