From 8776fa44d4bb86dc44317d3929519d47ee57e089 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Fri, 12 Aug 2011 03:27:48 +0000 Subject: [PATCH] CMake: Eliminate unused checks and #undef(s) as below; STACK_DIRECTION YYTEXT_POINTER HAVE_NAMESPACES HAVE_STD_ITERATOR HAVE_FWD_ITERATOR HAVE_BI_ITERATOR HAVE_GLOBAL_HASH_MAP HAVE_GLOBAL_HASH_SET HAVE_GNU_EXT_HASH_MAP HAVE_GNU_EXT_HASH_SET HAVE_STD_EXT_HASH_MAP HAVE_STD_EXT_HASH_SET git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137423 91177308-0d34-0410-b5e6-96231b3b80d8 --- cmake/config-ix.cmake | 5 ---- include/llvm/Config/config.h.cmake | 45 ------------------------------ 2 files changed, 50 deletions(-) diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake index a0b672c9be7..805ab987750 100755 --- a/cmake/config-ix.cmake +++ b/cmake/config-ix.cmake @@ -198,11 +198,6 @@ if( LLVM_USING_GLIBC ) add_llvm_definitions( -D_GNU_SOURCE ) endif() -# Type checks -check_type_exists(std::bidirectional_iterator "iterator;iostream" HAVE_BI_ITERATOR) -check_type_exists(std::iterator iterator HAVE_STD_ITERATOR) -check_type_exists(std::forward_iterator iterator HAVE_FWD_ITERATOR) - set(headers "") if (HAVE_SYS_TYPES_H) set(headers ${headers} "sys/types.h") diff --git a/include/llvm/Config/config.h.cmake b/include/llvm/Config/config.h.cmake index 246229cff16..425c46a9630 100644 --- a/include/llvm/Config/config.h.cmake +++ b/include/llvm/Config/config.h.cmake @@ -674,21 +674,6 @@ /* Define to `unsigned int' if does not define. */ #undef size_t -/* Define to 1 if the `S_IS*' macros in do not work properly. */ -#undef STAT_MACROS_BROKEN - -/* If using the C implementation of alloca, define if you know the - direction of stack growth for your system; otherwise it will be - automatically deduced at runtime. - STACK_DIRECTION > 0 => grows toward higher addresses - STACK_DIRECTION < 0 => grows toward lower addresses - STACK_DIRECTION = 0 => direction of growth unknown */ -#undef STACK_DIRECTION - -/* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a - `char[]'. */ -#undef YYTEXT_POINTER - /* Define to a function replacing strtoll */ #cmakedefine strtoll ${strtoll} @@ -704,36 +689,6 @@ /* Define to 1 if you have the `_chsize_s' function. */ #cmakedefine HAVE__CHSIZE_S ${HAVE__CHSIZE_S} -/* define if the compiler implements namespaces */ -#undef HAVE_NAMESPACES - -/* Does not have std namespace iterator */ -#undef HAVE_STD_ITERATOR - -/* Does not have forward iterator */ -#undef HAVE_FWD_ITERATOR - -/* Does not have bi-directional iterator */ -#undef HAVE_BI_ITERATOR - -/* Does not have */ -#undef HAVE_GLOBAL_HASH_MAP - -/* Does not have hash_set in global namespace */ -#undef HAVE_GLOBAL_HASH_SET - -/* Does not have ext/hash_map */ -#undef HAVE_GNU_EXT_HASH_MAP - -/* Does not have hash_set in gnu namespace */ -#undef HAVE_GNU_EXT_HASH_SET - -/* Does not have ext/hash_map> */ -#undef HAVE_STD_EXT_HASH_MAP - -/* Does not have hash_set in std namespace */ -#undef HAVE_STD_EXT_HASH_SET - /* Added by Kevin -- Maximum path length */ #cmakedefine MAXPATHLEN ${MAXPATHLEN} -- 2.34.1