aboutsummaryrefslogtreecommitdiff
path: root/compiler-rt
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2024-04-26 14:47:15 +0900
committerNikita Popov <npopov@redhat.com>2024-04-26 14:47:48 +0900
commit47682e4b4a0c8e7637d65868a7208aa6806a50f4 (patch)
treee80c9f5b8374d8229110c30fff6f21a43adbfc5b /compiler-rt
parent82d87600e5141af85deb8f3c5387513fda50dc43 (diff)
downloadllvm-47682e4b4a0c8e7637d65868a7208aa6806a50f4.tar.gz
llvm-47682e4b4a0c8e7637d65868a7208aa6806a50f4.tar.bz2
llvm-47682e4b4a0c8e7637d65868a7208aa6806a50f4.zip
Revert "[ORC] Implement basic reoptimization. (#67050)"
This reverts commit 0d288e5b0ccf217e41944ad4fd8772d8ae45daa1. Breaks the build.
Diffstat (limited to 'compiler-rt')
-rw-r--r--compiler-rt/lib/orc/common.h6
-rw-r--r--compiler-rt/lib/orc/elfnix_platform.cpp1
2 files changed, 3 insertions, 4 deletions
diff --git a/compiler-rt/lib/orc/common.h b/compiler-rt/lib/orc/common.h
index f34229a61534..73c5c4a2bd8d 100644
--- a/compiler-rt/lib/orc/common.h
+++ b/compiler-rt/lib/orc/common.h
@@ -19,9 +19,9 @@
/// This macro should be used to define tags that will be associated with
/// handlers in the JIT process, and call can be used to define tags f
-#define ORC_RT_JIT_DISPATCH_TAG(X) \
- ORC_RT_INTERFACE char X; \
- char X = 0;
+#define ORC_RT_JIT_DISPATCH_TAG(X) \
+extern "C" char X; \
+char X = 0;
/// Opaque struct for external symbols.
struct __orc_rt_Opaque {};
diff --git a/compiler-rt/lib/orc/elfnix_platform.cpp b/compiler-rt/lib/orc/elfnix_platform.cpp
index f76a07024031..c087e71038f9 100644
--- a/compiler-rt/lib/orc/elfnix_platform.cpp
+++ b/compiler-rt/lib/orc/elfnix_platform.cpp
@@ -28,7 +28,6 @@ using namespace __orc_rt;
using namespace __orc_rt::elfnix;
// Declare function tags for functions in the JIT process.
-ORC_RT_JIT_DISPATCH_TAG(__orc_rt_reoptimize_tag)
ORC_RT_JIT_DISPATCH_TAG(__orc_rt_elfnix_get_initializers_tag)
ORC_RT_JIT_DISPATCH_TAG(__orc_rt_elfnix_get_deinitializers_tag)
ORC_RT_JIT_DISPATCH_TAG(__orc_rt_elfnix_symbol_lookup_tag)