aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2013-07-26 16:54:23 +0000
committerReid Kleckner <reid@kleckner.net>2013-07-26 16:54:23 +0000
commit65985348c5ece4efecce485029b147c45453c4c8 (patch)
tree8af59881109cf3e92d8bd8740440154bb600b2b6 /lib/Support
parent105a4096795e4c974bc1018b3a665c18423d790f (diff)
downloadexternal_llvm-65985348c5ece4efecce485029b147c45453c4c8.zip
external_llvm-65985348c5ece4efecce485029b147c45453c4c8.tar.gz
external_llvm-65985348c5ece4efecce485029b147c45453c4c8.tar.bz2
Remove dead or useless header checks from cmake and autoconf
On Windows, this improves clean cmake configuration time on my workstation from 1m58s to 1m32s, which is pretty significant. There's probably more that can be done here, but this is the low hanging fruit. Eric volunteered to regenerate ./configure for me. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187209 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support')
-rw-r--r--lib/Support/Errno.cpp4
-rw-r--r--lib/Support/Unix/Path.inc8
-rw-r--r--lib/Support/Unix/Unix.h10
3 files changed, 4 insertions, 18 deletions
diff --git a/lib/Support/Errno.cpp b/lib/Support/Errno.cpp
index 730220f..ed17f60 100644
--- a/lib/Support/Errno.cpp
+++ b/lib/Support/Errno.cpp
@@ -14,8 +14,6 @@
#include "llvm/Support/Errno.h"
#include "llvm/Config/config.h" // Get autoconf configuration settings
#include "llvm/Support/raw_ostream.h"
-
-#if HAVE_STRING_H
#include <string.h>
#if HAVE_ERRNO_H
@@ -75,5 +73,3 @@ std::string StrError(int errnum) {
} // namespace sys
} // namespace llvm
-
-#endif // HAVE_STRING_H
diff --git a/lib/Support/Unix/Path.inc b/lib/Support/Unix/Path.inc
index ccd60e5..5386366 100644
--- a/lib/Support/Unix/Path.inc
+++ b/lib/Support/Unix/Path.inc
@@ -18,6 +18,8 @@
#include "Unix.h"
#include "llvm/Support/Process.h"
+#include <limits.h>
+#include <stdio.h>
#if HAVE_SYS_STAT_H
#include <sys/stat.h>
#endif
@@ -43,12 +45,6 @@
# include <ndir.h>
# endif
#endif
-#if HAVE_STDIO_H
-#include <stdio.h>
-#endif
-#if HAVE_LIMITS_H
-#include <limits.h>
-#endif
#ifdef __APPLE__
#include <mach-o/dyld.h>
diff --git a/lib/Support/Unix/Unix.h b/lib/Support/Unix/Unix.h
index 051f56f..dd11c04 100644
--- a/lib/Support/Unix/Unix.h
+++ b/lib/Support/Unix/Unix.h
@@ -22,28 +22,22 @@
#include "llvm/Config/config.h" // Get autoconf configuration settings
#include "llvm/Support/Errno.h"
#include <algorithm>
+#include <assert.h>
#include <cerrno>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <string>
+#include <sys/types.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
-#ifdef HAVE_SYS_TYPES_H
-#include <sys/types.h>
-#endif
-
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
-#ifdef HAVE_ASSERT_H
-#include <assert.h>
-#endif
-
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
#endif