Skip to content

Commit e86a02c

Browse files
authored
Use llvm-config.h in CIndexer.cpp instead of private header (llvm#75928)
Use llvm-config.h in CIndexer.cpp instead of private header
1 parent 1ff9fb7 commit e86a02c

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/config.h"
20+
#include "llvm/Config/llvm-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: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,9 @@
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-
5653
/* Define if dlopen() is available on this platform. */
5754
#cmakedefine HAVE_DLOPEN ${HAVE_DLOPEN}
5855

59-
/* Define if dladdr() is available on this platform. */
60-
#cmakedefine HAVE_DLADDR ${HAVE_DLADDR}
61-
6256
/* Define to 1 if we can register EH frames on this platform. */
6357
#cmakedefine HAVE_REGISTER_FRAME ${HAVE_REGISTER_FRAME}
6458

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,4 +198,10 @@
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+
201207
#endif

0 commit comments

Comments
 (0)