aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ObjectFile/JIT/ObjectFileJIT.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2020-02-17 09:02:29 -0800
committerJonas Devlieghere <jonas@devlieghere.com>2020-02-17 09:07:00 -0800
commit7d6da329dee1eda1761430d9097d1323f32c4c0c (patch)
treeecdd370a412a25281e7eb1201932eea39aea814b /lldb/source/Plugins/ObjectFile/JIT/ObjectFileJIT.cpp
parent8f95a82bc04091eda40f1cd1ca6c44d14c53dd4c (diff)
downloadllvm-7d6da329dee1eda1761430d9097d1323f32c4c0c.zip
llvm-7d6da329dee1eda1761430d9097d1323f32c4c0c.tar.gz
llvm-7d6da329dee1eda1761430d9097d1323f32c4c0c.tar.bz2
[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. 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() {