From 37f69de11b8c1810e29851430da317db5c1350a9 Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Fri, 26 Jul 2013 16:54:23 +0000 Subject: 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. llvm-svn: 187209 --- llvm/lib/Support/Unix/Path.inc | 8 ++------ llvm/lib/Support/Unix/Unix.h | 10 ++-------- 2 files changed, 4 insertions(+), 14 deletions(-) (limited to 'llvm/lib/Support/Unix') diff --git a/llvm/lib/Support/Unix/Path.inc b/llvm/lib/Support/Unix/Path.inc index ccd60e5fbd1..5386366b542 100644 --- a/llvm/lib/Support/Unix/Path.inc +++ b/llvm/lib/Support/Unix/Path.inc @@ -18,6 +18,8 @@ #include "Unix.h" #include "llvm/Support/Process.h" +#include +#include #if HAVE_SYS_STAT_H #include #endif @@ -43,12 +45,6 @@ # include # endif #endif -#if HAVE_STDIO_H -#include -#endif -#if HAVE_LIMITS_H -#include -#endif #ifdef __APPLE__ #include diff --git a/llvm/lib/Support/Unix/Unix.h b/llvm/lib/Support/Unix/Unix.h index 051f56f9692..dd11c04b32b 100644 --- a/llvm/lib/Support/Unix/Unix.h +++ b/llvm/lib/Support/Unix/Unix.h @@ -22,28 +22,22 @@ #include "llvm/Config/config.h" // Get autoconf configuration settings #include "llvm/Support/Errno.h" #include +#include #include #include #include #include #include +#include #ifdef HAVE_UNISTD_H #include #endif -#ifdef HAVE_SYS_TYPES_H -#include -#endif - #ifdef HAVE_SYS_PARAM_H #include #endif -#ifdef HAVE_ASSERT_H -#include -#endif - #ifdef HAVE_SYS_TIME_H # include #endif -- cgit v1.2.3