aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
diff options
context:
space:
mode:
authorDaniil Fukalov <dfukalov@gmail.com>2024-09-09 12:44:03 +0200
committerGitHub <noreply@github.com>2024-09-09 12:44:03 +0200
commit345cc47ba7a28811ae4ec7d113059ccb39c500a3 (patch)
tree349438e293c722907f42a1c70818da5d88093ecc /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
parentdbd81ba2e85c2f244f22c983d96a106eae65c06a (diff)
downloadllvm-345cc47ba7a28811ae4ec7d113059ccb39c500a3.zip
llvm-345cc47ba7a28811ae4ec7d113059ccb39c500a3.tar.gz
llvm-345cc47ba7a28811ae4ec7d113059ccb39c500a3.tar.bz2
[NFC] Add explicit #include llvm-config.h where its macros are used, lldb part. (#107603)
(this is lldb part) Without these explicit includes, removing other headers, who implicitly include llvm-config.h, may have non-trivial side effects. For example, `clangd` may report even `llvm-config.h` as "no used" in case it defines a macro, that is explicitly used with #ifdef. It is actually amplified with different build configs which use different set of macros.
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
index f6b1db7..23baa92 100644
--- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
@@ -38,6 +38,7 @@
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/StringSwitch.h"
+#include "llvm/Config/llvm-config.h" // for LLVM_ENABLE_ZLIB
#include "llvm/Support/JSON.h"
#if defined(HAVE_LIBCOMPRESSION)