summaryrefslogtreecommitdiffstats
path: root/lldb/source/API
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2019-05-03 23:19:27 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2019-05-03 23:19:27 +0000
commit5a36558c5bace507ee825fa53d117f541fe18e09 (patch)
tree9d0017c861a876ee194a2ac8ca10f5ecef58a44a /lldb/source/API
parent3dcb892d2d6fb2809f57cbf80984f7f5603e2ace (diff)
downloadbcm5719-llvm-5a36558c5bace507ee825fa53d117f541fe18e09.tar.gz
bcm5719-llvm-5a36558c5bace507ee825fa53d117f541fe18e09.zip
ExpressionParser: only force link MCJIT when needed
This was added to support FreeBSD. The inclusion of this header increases the size of `lldb-server` due to MCJIT being forcefully preserved. Conditionalise the inclusion to shared builds of LLVM which will allow for MCJIT to be stripped if unnecessary when performing static linking of tools. This shaves off ~28% of the binary size for lldb-server when linked with gold using `-ffunction-sections` and `-fdata-sections`. llvm-svn: 359944
Diffstat (limited to 'lldb/source/API')
-rw-r--r--lldb/source/API/SystemInitializerFull.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lldb/source/API/SystemInitializerFull.cpp b/lldb/source/API/SystemInitializerFull.cpp
index 8e5e1a865ed..6566f08ec78 100644
--- a/lldb/source/API/SystemInitializerFull.cpp
+++ b/lldb/source/API/SystemInitializerFull.cpp
@@ -114,6 +114,11 @@
#include "llvm/Support/TargetSelect.h"
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wglobal-constructors"
+#include "llvm/ExecutionEngine/MCJIT.h"
+#pragma clang diagnostic pop
+
#include <string>
using namespace lldb_private;
OpenPOWER on IntegriCloud