summaryrefslogtreecommitdiff
path: root/lib/Support/Unix
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/Unix
parent105a4096795e4c974bc1018b3a665c18423d790f (diff)
downloadllvm-65985348c5ece4efecce485029b147c45453c4c8.tar.gz
llvm-65985348c5ece4efecce485029b147c45453c4c8.tar.bz2
llvm-65985348c5ece4efecce485029b147c45453c4c8.tar.xz
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/Unix')
-rw-r--r--lib/Support/Unix/Path.inc8
-rw-r--r--lib/Support/Unix/Unix.h10
2 files changed, 4 insertions, 14 deletions
diff --git a/lib/Support/Unix/Path.inc b/lib/Support/Unix/Path.inc
index ccd60e5fbd..5386366b54 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 051f56f969..dd11c04b32 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