[clang] [llvm] Use llvm-config.h in CIndexer.cpp instead of private header (PR #75928)
Abhina Sree via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 19 05:14:13 PST 2023
https://github.com/abhina-sree created https://github.com/llvm/llvm-project/pull/75928
Use llvm-config.h in CIndexer.cpp instead of private header
>From 86e8d6f52da0b48b9e99b66a7440755507c9f9ed Mon Sep 17 00:00:00 2001
From: Abhina Sreeskantharajan <Abhina.Sreeskantharajan at ibm.com>
Date: Tue, 19 Dec 2023 08:12:48 -0500
Subject: [PATCH] use llvm-config.h instead of private header
---
clang/tools/libclang/CIndexer.cpp | 2 +-
llvm/include/llvm/Config/llvm-config.h.cmake | 6 ++++++
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/clang/tools/libclang/CIndexer.cpp b/clang/tools/libclang/CIndexer.cpp
index 0623ae69fe01ed..430147b2aa77af 100644
--- a/clang/tools/libclang/CIndexer.cpp
+++ b/clang/tools/libclang/CIndexer.cpp
@@ -17,7 +17,7 @@
#include "clang/Driver/Driver.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallString.h"
-#include "llvm/Config/config.h"
+#include "llvm/Config/llvm-config.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/MD5.h"
#include "llvm/Support/Path.h"
diff --git a/llvm/include/llvm/Config/llvm-config.h.cmake b/llvm/include/llvm/Config/llvm-config.h.cmake
index 6605ea60df99e1..483c5adc99ca80 100644
--- a/llvm/include/llvm/Config/llvm-config.h.cmake
+++ b/llvm/include/llvm/Config/llvm-config.h.cmake
@@ -198,4 +198,10 @@
/* Define if plugins enabled */
#cmakedefine LLVM_ENABLE_PLUGINS
+/* Define to 1 if you have the <dlfcn.h> header file. */
+#cmakedefine HAVE_DLFCN_H ${HAVE_DLFCN_H}
+
+/* Define if dladdr() is available on this platform. */
+#cmakedefine HAVE_DLADDR ${HAVE_DLADDR}
+
#endif
More information about the llvm-commits
mailing list