diff options
| author | Nikita Popov <npopov@redhat.com> | 2024-04-26 14:47:15 +0900 |
|---|---|---|
| committer | Nikita Popov <npopov@redhat.com> | 2024-04-26 14:47:48 +0900 |
| commit | 47682e4b4a0c8e7637d65868a7208aa6806a50f4 (patch) | |
| tree | e80c9f5b8374d8229110c30fff6f21a43adbfc5b /compiler-rt | |
| parent | 82d87600e5141af85deb8f3c5387513fda50dc43 (diff) | |
| download | llvm-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.h | 6 | ||||
| -rw-r--r-- | compiler-rt/lib/orc/elfnix_platform.cpp | 1 |
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) |
