Skip to content

Commit 4c1b811

Browse files
committed
Revert "Use llvm-config.h in CIndexer.cpp instead of private header (#75928)"
This reverts commit e86a02c.
1 parent 7bd1721 commit 4c1b811

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

clang/tools/libclang/CIndexer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#include "clang/Driver/Driver.h"
1818
#include "llvm/ADT/STLExtras.h"
1919
#include "llvm/ADT/SmallString.h"
20-
#include "llvm/Config/llvm-config.h"
20+
#include "llvm/Config/config.h"
2121
#include "llvm/Support/FileSystem.h"
2222
#include "llvm/Support/MD5.h"
2323
#include "llvm/Support/Path.h"

llvm/include/llvm/Config/config.h.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,15 @@
5050
don't. */
5151
#cmakedefine01 HAVE_DECL_STRERROR_S
5252

53+
/* Define to 1 if you have the <dlfcn.h> header file. */
54+
#cmakedefine HAVE_DLFCN_H ${HAVE_DLFCN_H}
55+
5356
/* Define if dlopen() is available on this platform. */
5457
#cmakedefine HAVE_DLOPEN ${HAVE_DLOPEN}
5558

59+
/* Define if dladdr() is available on this platform. */
60+
#cmakedefine HAVE_DLADDR ${HAVE_DLADDR}
61+
5662
/* Define to 1 if we can register EH frames on this platform. */
5763
#cmakedefine HAVE_REGISTER_FRAME ${HAVE_REGISTER_FRAME}
5864

llvm/include/llvm/Config/llvm-config.h.cmake

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,4 @@
198198
/* Define if plugins enabled */
199199
#cmakedefine LLVM_ENABLE_PLUGINS
200200

201-
/* Define to 1 if you have the <dlfcn.h> header file. */
202-
#cmakedefine HAVE_DLFCN_H ${HAVE_DLFCN_H}
203-
204-
/* Define if dladdr() is available on this platform. */
205-
#cmakedefine HAVE_DLADDR ${HAVE_DLADDR}
206-
207201
#endif

0 commit comments

Comments
 (0)