aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ObjectFile/JIT/ObjectFileJIT.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2020-02-17 14:03:14 -0800
committerJonas Devlieghere <jonas@devlieghere.com>2020-02-17 14:43:05 -0800
commit9b12dc98fd0821f8d1f7f6304a314b6417d6ae3d (patch)
treecf5d92ce86c73b8005105c11daaa018542bed388 /lldb/source/Plugins/ObjectFile/JIT/ObjectFileJIT.cpp
parent09856feb3cc141f4f9c8b9edec28602ac4f21575 (diff)
downloadllvm-9b12dc98fd0821f8d1f7f6304a314b6417d6ae3d.zip
llvm-9b12dc98fd0821f8d1f7f6304a314b6417d6ae3d.tar.gz
llvm-9b12dc98fd0821f8d1f7f6304a314b6417d6ae3d.tar.bz2
Re-land "[lldb/CMake] Auto-generate the Initialize and Terminate calls for plugin"
This patch changes the way we initialize and terminate the plugins in the system initializer. It uses an approach similar to LLVM's TARGETS_TO_BUILD with a def file that enumerates the plugins. The previously landed patch got reverted because it was lacking: (1) A plugin definition for the Objective-C language runtime, (2) The dependency between the Static and WASM dynamic loader, (3) Explicit initialization of ScriptInterpreterNone for lldb-test. All issues have been addressed in this patch. Differential revision: https://reviews.llvm.org/D73067
Diffstat (limited to 'lldb/source/Plugins/ObjectFile/JIT/ObjectFileJIT.cpp')
-rw-r--r--lldb/source/Plugins/ObjectFile/JIT/ObjectFileJIT.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/Plugins/ObjectFile/JIT/ObjectFileJIT.cpp b/lldb/source/Plugins/ObjectFile/JIT/ObjectFileJIT.cpp
index 2d505bc..371bbb5 100644
--- a/lldb/source/Plugins/ObjectFile/JIT/ObjectFileJIT.cpp
+++ b/lldb/source/Plugins/ObjectFile/JIT/ObjectFileJIT.cpp
@@ -39,6 +39,8 @@
using namespace lldb;
using namespace lldb_private;
+LLDB_PLUGIN_DEFINE(ObjectFileJIT)
+
char ObjectFileJIT::ID;
void ObjectFileJIT::Initialize() {