summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-06-04 03:28:55 +0000
committerAlp Toker <alp@nuanti.com>2014-06-04 03:28:55 +0000
commitf4545688eab4ddb6fb4dabe43d9d00f9d7db9602 (patch)
treed531fd91add89c55d0f49a9cc46a5f7cf1f25c1f /tools
parentcc15d731ca100cddd24494d5c6738da8daf8131d (diff)
downloadclang-f4545688eab4ddb6fb4dabe43d9d00f9d7db9602.tar.gz
clang-f4545688eab4ddb6fb4dabe43d9d00f9d7db9602.tar.bz2
clang-f4545688eab4ddb6fb4dabe43d9d00f9d7db9602.tar.xz
Remove the last remaining llvm/Config/config.h includes
This corrects long-standing misuses of LLVM's internal config.h. In most cases the public llvm-config.h header was intended and we can now remove the old hacks thanks to LLVM r210144. The config.h header is private, won't be installed and should no longer be included by clang or other modules. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@210145 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/c-index-test/c-index-test.c2
-rw-r--r--tools/driver/driver.cpp2
-rw-r--r--tools/libclang/CIndex.cpp6
3 files changed, 5 insertions, 5 deletions
diff --git a/tools/c-index-test/c-index-test.c b/tools/c-index-test/c-index-test.c
index dcae670591..1d5cb1434c 100644
--- a/tools/c-index-test/c-index-test.c
+++ b/tools/c-index-test/c-index-test.c
@@ -1,10 +1,10 @@
/* c-index-test.c */
+#include "clang/Config/config.h"
#include "clang-c/Index.h"
#include "clang-c/CXCompilationDatabase.h"
#include "clang-c/BuildSystem.h"
#include "clang-c/Documentation.h"
-#include "llvm/Config/config.h"
#include <ctype.h>
#include <stdlib.h>
#include <stdio.h>
diff --git a/tools/driver/driver.cpp b/tools/driver/driver.cpp
index fd135554a6..edb32bc96b 100644
--- a/tools/driver/driver.cpp
+++ b/tools/driver/driver.cpp
@@ -25,7 +25,7 @@
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/SmallVector.h"
-#include "llvm/Config/config.h"
+#include "llvm/Config/llvm-config.h"
#include "llvm/Option/ArgList.h"
#include "llvm/Option/OptTable.h"
#include "llvm/Option/Option.h"
diff --git a/tools/libclang/CIndex.cpp b/tools/libclang/CIndex.cpp
index 22b007e2f7..bf54fb9376 100644
--- a/tools/libclang/CIndex.cpp
+++ b/tools/libclang/CIndex.cpp
@@ -39,7 +39,7 @@
#include "llvm/ADT/Optional.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/StringSwitch.h"
-#include "llvm/Config/config.h"
+#include "llvm/Config/llvm-config.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/CrashRecoveryContext.h"
#include "llvm/Support/Format.h"
@@ -52,7 +52,7 @@
#include "llvm/Support/Timer.h"
#include "llvm/Support/raw_ostream.h"
-#if HAVE_PTHREAD_H
+#ifdef __APPLE__
#include <pthread.h>
#endif
@@ -6962,7 +6962,7 @@ cxindex::Logger::~Logger() {
OS << "[libclang:" << Name << ':';
// FIXME: Portability.
-#if HAVE_PTHREAD_H && __APPLE__
+#ifdef __APPLE__
mach_port_t tid = pthread_mach_thread_np(pthread_self());
OS << tid << ':';
#endif