diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2011-08-12 03:27:48 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2011-08-12 03:27:48 +0000 |
commit | 8776fa44d4bb86dc44317d3929519d47ee57e089 (patch) | |
tree | 434fb92b4807d7de6bd92f2e8a8153737370338c | |
parent | 0d46ccfc5c2f5d0894e340907f6e58067cce5b03 (diff) | |
download | llvm-8776fa44d4bb86dc44317d3929519d47ee57e089.tar.gz llvm-8776fa44d4bb86dc44317d3929519d47ee57e089.tar.bz2 llvm-8776fa44d4bb86dc44317d3929519d47ee57e089.tar.xz |
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
-rwxr-xr-x | cmake/config-ix.cmake | 5 | ||||
-rw-r--r-- | include/llvm/Config/config.h.cmake | 45 |
2 files changed, 0 insertions, 50 deletions
diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake index a0b672c9be..805ab98775 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<int,int> "iterator;iostream" HAVE_BI_ITERATOR) -check_type_exists(std::iterator<int,int,int> iterator HAVE_STD_ITERATOR) -check_type_exists(std::forward_iterator<int,int> 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 246229cff1..425c46a963 100644 --- a/include/llvm/Config/config.h.cmake +++ b/include/llvm/Config/config.h.cmake @@ -674,21 +674,6 @@ /* Define to `unsigned int' if <sys/types.h> does not define. */ #undef size_t -/* Define to 1 if the `S_IS*' macros in <sys/stat.h> 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 <hash_map> */ -#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} |