diff options
author | Daniil Fukalov <dfukalov@gmail.com> | 2024-09-09 12:44:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-09 12:44:03 +0200 |
commit | 345cc47ba7a28811ae4ec7d113059ccb39c500a3 (patch) | |
tree | 349438e293c722907f42a1c70818da5d88093ecc /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp | |
parent | dbd81ba2e85c2f244f22c983d96a106eae65c06a (diff) | |
download | llvm-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/GDBRemoteCommunication.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp index d49e754..7eacd60 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp @@ -31,6 +31,7 @@ #include "lldb/Utility/RegularExpression.h" #include "lldb/Utility/StreamString.h" #include "llvm/ADT/SmallString.h" +#include "llvm/Config/llvm-config.h" // for LLVM_ENABLE_ZLIB #include "llvm/Support/ScopedPrinter.h" #include "ProcessGDBRemoteLog.h" |