[llvm-commits] [poolalloc] r75180 - in /poolalloc/trunk: CMakeLists.txt include/poolalloc/Config/config.h.cmake lib/AssistDS/CMakeLists.txt lib/CMakeLists.txt lib/DSA/CMakeLists.txt lib/PoolAllocate/CMakeLists.txt runtime/CMakeLists.txt runtime/FL2Allocator/CMakeLists.txt runtime/FreeListAllocator/CMakeLists.txt runtime/PreRT/CMakeLists.txt tools/CMakeLists.txt tools/Pa/CMakeLists.txt tools/Pa/pa.cpp
Patrick Simmons
simmon12 at illinois.edu
Thu Jul 9 15:20:26 PDT 2009
Author: psimmons
Date: Thu Jul 9 17:20:25 2009
New Revision: 75180
URL: http://llvm.org/viewvc/llvm-project?rev=75180&view=rev
Log:
Add CMake support to poolalloc
Added:
poolalloc/trunk/CMakeLists.txt
poolalloc/trunk/include/poolalloc/Config/config.h.cmake
- copied, changed from r75131, poolalloc/trunk/include/poolalloc/Config/config.h.in
poolalloc/trunk/lib/AssistDS/CMakeLists.txt
poolalloc/trunk/lib/CMakeLists.txt
poolalloc/trunk/lib/DSA/CMakeLists.txt
poolalloc/trunk/lib/PoolAllocate/CMakeLists.txt
poolalloc/trunk/runtime/CMakeLists.txt
poolalloc/trunk/runtime/FL2Allocator/CMakeLists.txt
poolalloc/trunk/runtime/FreeListAllocator/CMakeLists.txt
poolalloc/trunk/runtime/PreRT/CMakeLists.txt
poolalloc/trunk/tools/CMakeLists.txt
poolalloc/trunk/tools/Pa/CMakeLists.txt
Modified:
poolalloc/trunk/tools/Pa/pa.cpp
Added: poolalloc/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/CMakeLists.txt?rev=75180&view=auto
==============================================================================
--- poolalloc/trunk/CMakeLists.txt (added)
+++ poolalloc/trunk/CMakeLists.txt Thu Jul 9 17:20:25 2009
@@ -0,0 +1,6 @@
+include_directories(include)
+configure_file(include/poolalloc/Config/config.h.cmake
+ include/poolalloc/Config/config.h)
+add_subdirectory(lib)
+add_subdirectory(runtime)
+add_subdirectory(tools)
Copied: poolalloc/trunk/include/poolalloc/Config/config.h.cmake (from r75131, poolalloc/trunk/include/poolalloc/Config/config.h.in)
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/include/poolalloc/Config/config.h.cmake?p2=poolalloc/trunk/include/poolalloc/Config/config.h.cmake&p1=poolalloc/trunk/include/poolalloc/Config/config.h.in&r1=75131&r2=75180&rev=75180&view=diff
==============================================================================
--- poolalloc/trunk/include/poolalloc/Config/config.h.in (original)
+++ poolalloc/trunk/include/poolalloc/Config/config.h.cmake Thu Jul 9 17:20:25 2009
@@ -1,434 +1,434 @@
/* include/poolalloc/Config/config.h.in. Generated from autoconf/configure.ac by autoheader. */
/* Define if dlopen(0) will open the symbols of the program */
-#undef CAN_DLOPEN_SELF
+#cmakedefine CAN_DLOPEN_SELF
/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
systems. This function is required for `alloca.c' support on those systems.
*/
-#undef CRAY_STACKSEG_END
+#cmakedefine CRAY_STACKSEG_END
/* Define to 1 if using `alloca.c'. */
-#undef C_ALLOCA
+#cmakedefine C_ALLOCA
/* Define to 1 if you have `alloca', as a function or macro. */
-#undef HAVE_ALLOCA
+#cmakedefine HAVE_ALLOCA
/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
*/
-#undef HAVE_ALLOCA_H
+#cmakedefine HAVE_ALLOCA_H
/* Define to 1 if you have the `argz_append' function. */
-#undef HAVE_ARGZ_APPEND
+#cmakedefine HAVE_ARGZ_APPEND
/* Define to 1 if you have the `argz_create_sep' function. */
-#undef HAVE_ARGZ_CREATE_SEP
+#cmakedefine HAVE_ARGZ_CREATE_SEP
/* Define to 1 if you have the <argz.h> header file. */
-#undef HAVE_ARGZ_H
+#cmakedefine HAVE_ARGZ_H
/* Define to 1 if you have the `argz_insert' function. */
-#undef HAVE_ARGZ_INSERT
+#cmakedefine HAVE_ARGZ_INSERT
/* Define to 1 if you have the `argz_next' function. */
-#undef HAVE_ARGZ_NEXT
+#cmakedefine HAVE_ARGZ_NEXT
/* Define to 1 if you have the `argz_stringify' function. */
-#undef HAVE_ARGZ_STRINGIFY
+#cmakedefine HAVE_ARGZ_STRINGIFY
/* Define to 1 if you have the <assert.h> header file. */
-#undef HAVE_ASSERT_H
+#cmakedefine HAVE_ASSERT_H
/* Define to 1 if you have the `backtrace' function. */
-#undef HAVE_BACKTRACE
+#cmakedefine HAVE_BACKTRACE
/* Define to 1 if you have the `bcopy' function. */
-#undef HAVE_BCOPY
+#cmakedefine HAVE_BCOPY
/* Does not have bi-directional iterator */
-#undef HAVE_BI_ITERATOR
+#cmakedefine HAVE_BI_ITERATOR
/* Define to 1 if you have the `closedir' function. */
-#undef HAVE_CLOSEDIR
+#cmakedefine HAVE_CLOSEDIR
/* Define to 1 if you have the <ctype.h> header file. */
-#undef HAVE_CTYPE_H
+#cmakedefine HAVE_CTYPE_H
/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
*/
-#undef HAVE_DIRENT_H
+#cmakedefine HAVE_DIRENT_H
/* Define if you have the GNU dld library. */
-#undef HAVE_DLD
+#cmakedefine HAVE_DLD
/* Define to 1 if you have the <dld.h> header file. */
-#undef HAVE_DLD_H
+#cmakedefine HAVE_DLD_H
/* Define to 1 if you have the `dlerror' function. */
-#undef HAVE_DLERROR
+#cmakedefine HAVE_DLERROR
/* Define to 1 if you have the <dlfcn.h> header file. */
-#undef HAVE_DLFCN_H
+#cmakedefine HAVE_DLFCN_H
/* Define if dlopen() is available on this platform. */
-#undef HAVE_DLOPEN
+#cmakedefine HAVE_DLOPEN
/* Define to 1 if you have the <dl.h> header file. */
-#undef HAVE_DL_H
+#cmakedefine HAVE_DL_H
/* Define if you have the _dyld_func_lookup function. */
-#undef HAVE_DYLD
+#cmakedefine HAVE_DYLD
/* Define to 1 if you have the <errno.h> header file. */
-#undef HAVE_ERRNO_H
+#cmakedefine HAVE_ERRNO_H
/* Define to 1 if the system has the type `error_t'. */
-#undef HAVE_ERROR_T
+#cmakedefine HAVE_ERROR_T
/* Define to 1 if you have the <execinfo.h> header file. */
-#undef HAVE_EXECINFO_H
+#cmakedefine HAVE_EXECINFO_H
/* Define to 1 if you have the <fcntl.h> header file. */
-#undef HAVE_FCNTL_H
+#cmakedefine HAVE_FCNTL_H
/* Set to 1 if the finite function is found in <ieeefp.h> */
-#undef HAVE_FINITE_IN_IEEEFP_H
+#cmakedefine HAVE_FINITE_IN_IEEEFP_H
/* Does not have forward iterator */
-#undef HAVE_FWD_ITERATOR
+#cmakedefine HAVE_FWD_ITERATOR
/* Define to 1 if you have the `getcwd' function. */
-#undef HAVE_GETCWD
+#cmakedefine HAVE_GETCWD
/* Define to 1 if you have the `getpagesize' function. */
-#undef HAVE_GETPAGESIZE
+#cmakedefine HAVE_GETPAGESIZE
/* Define to 1 if you have the `getrusage' function. */
-#undef HAVE_GETRUSAGE
+#cmakedefine HAVE_GETRUSAGE
/* Define to 1 if you have the `gettimeofday' function. */
-#undef HAVE_GETTIMEOFDAY
+#cmakedefine HAVE_GETTIMEOFDAY
/* Does not have <hash_map> */
-#undef HAVE_GLOBAL_HASH_MAP
+#cmakedefine HAVE_GLOBAL_HASH_MAP
/* Does not have hash_set in global namespace */
-#undef HAVE_GLOBAL_HASH_SET
+#cmakedefine HAVE_GLOBAL_HASH_SET
/* Does not have ext/hash_map */
-#undef HAVE_GNU_EXT_HASH_MAP
+#cmakedefine HAVE_GNU_EXT_HASH_MAP
/* Does not have hash_set in gnu namespace */
-#undef HAVE_GNU_EXT_HASH_SET
+#cmakedefine HAVE_GNU_EXT_HASH_SET
/* Define to 1 if you have the `index' function. */
-#undef HAVE_INDEX
+#cmakedefine HAVE_INDEX
/* Define to 1 if the system has the type `int64_t'. */
-#undef HAVE_INT64_T
+#cmakedefine HAVE_INT64_T
/* Define to 1 if you have the <inttypes.h> header file. */
-#undef HAVE_INTTYPES_H
+#cmakedefine HAVE_INTTYPES_H
/* Define to 1 if you have the `isatty' function. */
-#undef HAVE_ISATTY
+#cmakedefine HAVE_ISATTY
/* Set to 1 if the isinf function is found in <cmath> */
-#undef HAVE_ISINF_IN_CMATH
+#cmakedefine HAVE_ISINF_IN_CMATH
/* Set to 1 if the isinf function is found in <math.h> */
-#undef HAVE_ISINF_IN_MATH_H
+#cmakedefine HAVE_ISINF_IN_MATH_H
/* Set to 1 if the isnan function is found in <cmath> */
-#undef HAVE_ISNAN_IN_CMATH
+#cmakedefine HAVE_ISNAN_IN_CMATH
/* Set to 1 if the isnan function is found in <math.h> */
-#undef HAVE_ISNAN_IN_MATH_H
+#cmakedefine HAVE_ISNAN_IN_MATH_H
/* Define if you have the libdl library or equivalent. */
-#undef HAVE_LIBDL
+#cmakedefine HAVE_LIBDL
/* Define to 1 if you have the `elf' library (-lelf). */
-#undef HAVE_LIBELF
+#cmakedefine HAVE_LIBELF
/* Define to 1 if you have the <limits.h> header file. */
-#undef HAVE_LIMITS_H
+#cmakedefine HAVE_LIMITS_H
/* Define to 1 if you have the <link.h> header file. */
-#undef HAVE_LINK_H
+#cmakedefine HAVE_LINK_H
/* Define if you can use -Wl,-R. to pass -R. to the linker, in order to add
the current directory to the dynamic linker search path. */
-#undef HAVE_LINK_R
+#cmakedefine HAVE_LINK_R
/* Define if lt_dlopen() is available on this platform */
-#undef HAVE_LT_DLOPEN
+#cmakedefine HAVE_LT_DLOPEN
/* Define to 1 if you have the <mach-o/dyld.h> header file. */
-#undef HAVE_MACH_O_DYLD_H
+#cmakedefine HAVE_MACH_O_DYLD_H
/* Define if mallinfo() is available on this platform. */
-#undef HAVE_MALLINFO
+#cmakedefine HAVE_MALLINFO
/* Define to 1 if you have the <malloc.h> header file. */
-#undef HAVE_MALLOC_H
+#cmakedefine HAVE_MALLOC_H
/* Define to 1 if you have the `memcpy' function. */
-#undef HAVE_MEMCPY
+#cmakedefine HAVE_MEMCPY
/* Define to 1 if you have the `memmove' function. */
-#undef HAVE_MEMMOVE
+#cmakedefine HAVE_MEMMOVE
/* Define to 1 if you have the <memory.h> header file. */
-#undef HAVE_MEMORY_H
+#cmakedefine HAVE_MEMORY_H
/* Define to 1 if you have the `mkdtemp' function. */
-#undef HAVE_MKDTEMP
+#cmakedefine HAVE_MKDTEMP
/* Define to 1 if you have the `mkstemp' function. */
-#undef HAVE_MKSTEMP
+#cmakedefine HAVE_MKSTEMP
/* Define to 1 if you have the `mktemp' function. */
-#undef HAVE_MKTEMP
+#cmakedefine HAVE_MKTEMP
/* Define to 1 if you have a working `mmap' system call. */
-#undef HAVE_MMAP
+#cmakedefine HAVE_MMAP
-/* Define if mmap() uses MAP_ANONYMOUS to map anonymous pages, or undefine if
+/* Define if mmap() uses MAP_ANONYMOUS to map anonymous pages, or cmakedefineine if
it uses MAP_ANON */
-#undef HAVE_MMAP_ANONYMOUS
+#cmakedefine HAVE_MMAP_ANONYMOUS
/* Define if mmap() can map files into memory */
-#undef HAVE_MMAP_FILE
+#cmakedefine HAVE_MMAP_FILE
/* define if the compiler implements namespaces */
-#undef HAVE_NAMESPACES
+#cmakedefine HAVE_NAMESPACES
/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
-#undef HAVE_NDIR_H
+#cmakedefine HAVE_NDIR_H
/* Define to 1 if you have the `opendir' function. */
-#undef HAVE_OPENDIR
+#cmakedefine HAVE_OPENDIR
/* Define if libtool can extract symbol lists from object files. */
-#undef HAVE_PRELOADED_SYMBOLS
+#cmakedefine HAVE_PRELOADED_SYMBOLS
/* Define to have the %a format string */
-#undef HAVE_PRINTF_A
+#cmakedefine HAVE_PRINTF_A
/* Have pthread_mutex_lock */
-#undef HAVE_PTHREAD_MUTEX_LOCK
+#cmakedefine HAVE_PTHREAD_MUTEX_LOCK
/* Define to 1 if srand48/lrand48/drand48 exist in <stdlib.h> */
-#undef HAVE_RAND48
+#cmakedefine HAVE_RAND48
/* Define to 1 if you have the `readdir' function. */
-#undef HAVE_READDIR
+#cmakedefine HAVE_READDIR
/* Define to 1 if you have the `realpath' function. */
-#undef HAVE_REALPATH
+#cmakedefine HAVE_REALPATH
/* Define to 1 if you have the `rindex' function. */
-#undef HAVE_RINDEX
+#cmakedefine HAVE_RINDEX
/* Define to 1 if you have the <rw/stdex/hash_map.h> header file. */
-#undef HAVE_RW_STDEX_HASH_MAP_H
+#cmakedefine HAVE_RW_STDEX_HASH_MAP_H
/* Define to 1 if you have the <rw/stdex/hash_set.h> header file. */
-#undef HAVE_RW_STDEX_HASH_SET_H
+#cmakedefine HAVE_RW_STDEX_HASH_SET_H
/* Define to 1 if you have the `sbrk' function. */
-#undef HAVE_SBRK
+#cmakedefine HAVE_SBRK
/* Define to 1 if you have the `setrlimit' function. */
-#undef HAVE_SETRLIMIT
+#cmakedefine HAVE_SETRLIMIT
/* Define if you have the shl_load function. */
-#undef HAVE_SHL_LOAD
+#cmakedefine HAVE_SHL_LOAD
/* Define to 1 if you have the <signal.h> header file. */
-#undef HAVE_SIGNAL_H
+#cmakedefine HAVE_SIGNAL_H
/* Define to 1 if you have the <stdint.h> header file. */
-#undef HAVE_STDINT_H
+#cmakedefine HAVE_STDINT_H
/* Define to 1 if you have the <stdio.h> header file. */
-#undef HAVE_STDIO_H
+#cmakedefine HAVE_STDIO_H
/* Define to 1 if you have the <stdlib.h> header file. */
-#undef HAVE_STDLIB_H
+#cmakedefine HAVE_STDLIB_H
/* Does not have ext/hash_map> */
-#undef HAVE_STD_EXT_HASH_MAP
+#cmakedefine HAVE_STD_EXT_HASH_MAP
/* Does not have hash_set in std namespace */
-#undef HAVE_STD_EXT_HASH_SET
+#cmakedefine HAVE_STD_EXT_HASH_SET
/* Set to 1 if the std::isinf function is found in <cmath> */
-#undef HAVE_STD_ISINF_IN_CMATH
+#cmakedefine HAVE_STD_ISINF_IN_CMATH
/* Set to 1 if the std::isnan function is found in <cmath> */
-#undef HAVE_STD_ISNAN_IN_CMATH
+#cmakedefine HAVE_STD_ISNAN_IN_CMATH
/* Does not have std namespace iterator */
-#undef HAVE_STD_ITERATOR
+#cmakedefine HAVE_STD_ITERATOR
/* Define to 1 if you have the `strchr' function. */
-#undef HAVE_STRCHR
+#cmakedefine HAVE_STRCHR
/* Define to 1 if you have the `strcmp' function. */
-#undef HAVE_STRCMP
+#cmakedefine HAVE_STRCMP
/* Define to 1 if you have the `strdup' function. */
-#undef HAVE_STRDUP
+#cmakedefine HAVE_STRDUP
/* Define to 1 if you have the `strerror' function. */
-#undef HAVE_STRERROR
+#cmakedefine HAVE_STRERROR
/* Define to 1 if you have the `strerror_r' function. */
-#undef HAVE_STRERROR_R
+#cmakedefine HAVE_STRERROR_R
/* Define to 1 if you have the <strings.h> header file. */
-#undef HAVE_STRINGS_H
+#cmakedefine HAVE_STRINGS_H
/* Define to 1 if you have the <string.h> header file. */
-#undef HAVE_STRING_H
+#cmakedefine HAVE_STRING_H
/* Define to 1 if you have the `strrchr' function. */
-#undef HAVE_STRRCHR
+#cmakedefine HAVE_STRRCHR
/* Define to 1 if you have the `strtoll' function. */
-#undef HAVE_STRTOLL
+#cmakedefine HAVE_STRTOLL
/* Define to 1 if you have the `strtoq' function. */
-#undef HAVE_STRTOQ
+#cmakedefine HAVE_STRTOQ
/* Define to 1 if you have the `sysconf' function. */
-#undef HAVE_SYSCONF
+#cmakedefine HAVE_SYSCONF
/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
*/
-#undef HAVE_SYS_DIR_H
+#cmakedefine HAVE_SYS_DIR_H
/* Define to 1 if you have the <sys/dl.h> header file. */
-#undef HAVE_SYS_DL_H
+#cmakedefine HAVE_SYS_DL_H
/* Define to 1 if you have the <sys/mman.h> header file. */
-#undef HAVE_SYS_MMAN_H
+#cmakedefine HAVE_SYS_MMAN_H
/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
*/
-#undef HAVE_SYS_NDIR_H
+#cmakedefine HAVE_SYS_NDIR_H
/* Define to 1 if you have the <sys/param.h> header file. */
-#undef HAVE_SYS_PARAM_H
+#cmakedefine HAVE_SYS_PARAM_H
/* Define to 1 if you have the <sys/resource.h> header file. */
-#undef HAVE_SYS_RESOURCE_H
+#cmakedefine HAVE_SYS_RESOURCE_H
/* Define to 1 if you have the <sys/stat.h> header file. */
-#undef HAVE_SYS_STAT_H
+#cmakedefine HAVE_SYS_STAT_H
/* Define to 1 if you have the <sys/time.h> header file. */
-#undef HAVE_SYS_TIME_H
+#cmakedefine HAVE_SYS_TIME_H
/* Define to 1 if you have the <sys/types.h> header file. */
-#undef HAVE_SYS_TYPES_H
+#cmakedefine HAVE_SYS_TYPES_H
/* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
-#undef HAVE_SYS_WAIT_H
+#cmakedefine HAVE_SYS_WAIT_H
/* Define to 1 if the system has the type `uint64_t'. */
-#undef HAVE_UINT64_T
+#cmakedefine HAVE_UINT64_T
/* Define to 1 if you have the <unistd.h> header file. */
-#undef HAVE_UNISTD_H
+#cmakedefine HAVE_UNISTD_H
/* Define to 1 if you have the <utime.h> header file. */
-#undef HAVE_UTIME_H
+#cmakedefine HAVE_UTIME_H
/* Define to 1 if the system has the type `u_int64_t'. */
-#undef HAVE_U_INT64_T
+#cmakedefine HAVE_U_INT64_T
/* Define to 1 if you have the <windows.h> header file. */
-#undef HAVE_WINDOWS_H
+#cmakedefine HAVE_WINDOWS_H
/* Installation directory for binary executables */
-#undef LLVM_BINDIR
+#cmakedefine LLVM_BINDIR
/* Time at which LLVM was configured */
-#undef LLVM_CONFIGTIME
+#cmakedefine LLVM_CONFIGTIME
/* Installation directory for documentation */
-#undef LLVM_DATADIR
+#cmakedefine LLVM_DATADIR
/* Installation directory for config files */
-#undef LLVM_ETCDIR
+#cmakedefine LLVM_ETCDIR
/* Installation directory for include files */
-#undef LLVM_INCLUDEDIR
+#cmakedefine LLVM_INCLUDEDIR
/* Installation directory for .info files */
-#undef LLVM_INFODIR
+#cmakedefine LLVM_INFODIR
/* Installation directory for libraries */
-#undef LLVM_LIBDIR
+#cmakedefine LLVM_LIBDIR
/* Installation directory for man pages */
-#undef LLVM_MANDIR
+#cmakedefine LLVM_MANDIR
/* Define if this is Unixish platform */
-#undef LLVM_ON_UNIX
+#cmakedefine LLVM_ON_UNIX
/* Define if this is Win32ish platform */
-#undef LLVM_ON_WIN32
+#cmakedefine LLVM_ON_WIN32
/* Installation prefix directory */
-#undef LLVM_PREFIX
+#cmakedefine LLVM_PREFIX
/* Define if the OS needs help to load dependent libraries for dlopen(). */
-#undef LTDL_DLOPEN_DEPLIBS
+#cmakedefine LTDL_DLOPEN_DEPLIBS
/* Define to the sub-directory in which libtool stores uninstalled libraries.
*/
-#undef LTDL_OBJDIR
+#cmakedefine LTDL_OBJDIR
/* Define to the name of the environment variable that determines the dynamic
library search path. */
-#undef LTDL_SHLIBPATH_VAR
+#cmakedefine LTDL_SHLIBPATH_VAR
/* Define to the extension used for shared libraries, say, ".so". */
-#undef LTDL_SHLIB_EXT
+#cmakedefine LTDL_SHLIB_EXT
/* Define to the system default library search path. */
-#undef LTDL_SYSSEARCHPATH
+#cmakedefine LTDL_SYSSEARCHPATH
-/* Define if /dev/zero should be used when mapping RWX memory, or undefine if
+/* Define if /dev/zero should be used when mapping RWX memory, or cmakedefineine if
its not necessary */
-#undef NEED_DEV_ZERO_FOR_MMAP
+#cmakedefine NEED_DEV_ZERO_FOR_MMAP
/* Define if dlsym() requires a leading underscore in symbol names. */
-#undef NEED_USCORE
+#cmakedefine NEED_USCORE
#if 0
/* Define to the address where bug reports for this package should be sent. */
-#undef PACKAGE_BUGREPORT
+#cmakedefine PACKAGE_BUGREPORT
/* Define to the full name of this package. */
-#undef PACKAGE_NAME
+#cmakedefine PACKAGE_NAME
/* Define to the full name and version of this package. */
-#undef PACKAGE_STRING
+#cmakedefine PACKAGE_STRING
/* Define to the one symbol short name of this package. */
-#undef PACKAGE_TARNAME
+#cmakedefine PACKAGE_TARNAME
/* Define to the version of this package. */
-#undef PACKAGE_VERSION
+#cmakedefine PACKAGE_VERSION
#endif
/* Define as the return type of signal handlers (`int' or `void'). */
-#undef RETSIGTYPE
+#cmakedefine RETSIGTYPE
/* If using the C implementation of alloca, define if you know the
direction of stack growth for your system; otherwise it will be
@@ -436,36 +436,36 @@
STACK_DIRECTION > 0 => grows toward higher addresses
STACK_DIRECTION < 0 => grows toward lower addresses
STACK_DIRECTION = 0 => direction of growth unknown */
-#undef STACK_DIRECTION
+#cmakedefine STACK_DIRECTION
/* Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly. */
-#undef STAT_MACROS_BROKEN
+#cmakedefine STAT_MACROS_BROKEN
/* Define to 1 if you have the ANSI C header files. */
-#undef STDC_HEADERS
+#cmakedefine STDC_HEADERS
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
-#undef TIME_WITH_SYS_TIME
+#cmakedefine TIME_WITH_SYS_TIME
/* Define to 1 if your <sys/time.h> declares `struct tm'. */
-#undef TM_IN_SYS_TIME
+#cmakedefine TM_IN_SYS_TIME
/* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a
`char[]'. */
-#undef YYTEXT_POINTER
+#cmakedefine YYTEXT_POINTER
/* Define to empty if `const' does not conform to ANSI C. */
-#undef const
+#cmakedefine const
/* Define to a type to use for `error_t' if it is not otherwise available. */
-#undef error_t
+#cmakedefine error_t
/* Define to `int' if <sys/types.h> does not define. */
-#undef pid_t
+#cmakedefine pid_t
/* Define to `unsigned' if <sys/types.h> does not define. */
-#undef size_t
+#cmakedefine size_t
/* Define to 1 if compiling for pool inference */
-#undef LLVA_KERNEL
+#cmakedefine LLVA_KERNEL
Added: poolalloc/trunk/lib/AssistDS/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/AssistDS/CMakeLists.txt?rev=75180&view=auto
==============================================================================
--- poolalloc/trunk/lib/AssistDS/CMakeLists.txt (added)
+++ poolalloc/trunk/lib/AssistDS/CMakeLists.txt Thu Jul 9 17:20:25 2009
@@ -0,0 +1,2 @@
+file(GLOB sources *.cpp)
+add_llvm_library( AssistDS ${sources} )
Added: poolalloc/trunk/lib/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/CMakeLists.txt?rev=75180&view=auto
==============================================================================
--- poolalloc/trunk/lib/CMakeLists.txt (added)
+++ poolalloc/trunk/lib/CMakeLists.txt Thu Jul 9 17:20:25 2009
@@ -0,0 +1,9 @@
+# Discover the projects that use CMake in the subdirectories.
+# Note that explicit cmake invocation is required every time a new project is
+# added or removed.
+file(GLOB entries *)
+foreach(entry ${entries})
+ if(IS_DIRECTORY ${entry} AND EXISTS ${entry}/CMakeLists.txt)
+ add_subdirectory(${entry})
+ endif()
+endforeach(entry)
Added: poolalloc/trunk/lib/DSA/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/DSA/CMakeLists.txt?rev=75180&view=auto
==============================================================================
--- poolalloc/trunk/lib/DSA/CMakeLists.txt (added)
+++ poolalloc/trunk/lib/DSA/CMakeLists.txt Thu Jul 9 17:20:25 2009
@@ -0,0 +1,2 @@
+file(GLOB sources *.cpp)
+add_llvm_library( LLVMDataStructure ${sources} )
Added: poolalloc/trunk/lib/PoolAllocate/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/PoolAllocate/CMakeLists.txt?rev=75180&view=auto
==============================================================================
--- poolalloc/trunk/lib/PoolAllocate/CMakeLists.txt (added)
+++ poolalloc/trunk/lib/PoolAllocate/CMakeLists.txt Thu Jul 9 17:20:25 2009
@@ -0,0 +1,3 @@
+file(GLOB sources *.cpp)
+add_llvm_library(poolalloc ${sources})
+target_link_libraries(poolalloc LLVMDataStructure)
\ No newline at end of file
Added: poolalloc/trunk/runtime/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/runtime/CMakeLists.txt?rev=75180&view=auto
==============================================================================
--- poolalloc/trunk/runtime/CMakeLists.txt (added)
+++ poolalloc/trunk/runtime/CMakeLists.txt Thu Jul 9 17:20:25 2009
@@ -0,0 +1,9 @@
+# Discover the projects that use CMake in the subdirectories.
+# Note that explicit cmake invocation is required every time a new project is
+# added or removed.
+file(GLOB entries *)
+foreach(entry ${entries})
+ if(IS_DIRECTORY ${entry} AND EXISTS ${entry}/CMakeLists.txt)
+ add_subdirectory(${entry})
+ endif()
+endforeach(entry)
Added: poolalloc/trunk/runtime/FL2Allocator/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/runtime/FL2Allocator/CMakeLists.txt?rev=75180&view=auto
==============================================================================
--- poolalloc/trunk/runtime/FL2Allocator/CMakeLists.txt (added)
+++ poolalloc/trunk/runtime/FL2Allocator/CMakeLists.txt Thu Jul 9 17:20:25 2009
@@ -0,0 +1,2 @@
+file(GLOB sources *.cpp)
+add_llvm_library( poolalloc_rt ${sources} )
\ No newline at end of file
Added: poolalloc/trunk/runtime/FreeListAllocator/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/runtime/FreeListAllocator/CMakeLists.txt?rev=75180&view=auto
==============================================================================
--- poolalloc/trunk/runtime/FreeListAllocator/CMakeLists.txt (added)
+++ poolalloc/trunk/runtime/FreeListAllocator/CMakeLists.txt Thu Jul 9 17:20:25 2009
@@ -0,0 +1,2 @@
+file(GLOB sources *.cpp)
+add_llvm_library( poolalloc_fl_rt ${sources} )
\ No newline at end of file
Added: poolalloc/trunk/runtime/PreRT/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/runtime/PreRT/CMakeLists.txt?rev=75180&view=auto
==============================================================================
--- poolalloc/trunk/runtime/PreRT/CMakeLists.txt (added)
+++ poolalloc/trunk/runtime/PreRT/CMakeLists.txt Thu Jul 9 17:20:25 2009
@@ -0,0 +1,2 @@
+file(GLOB sources *.cpp *.c)
+add_llvm_library( pa_pre_rt ${sources} )
Added: poolalloc/trunk/tools/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/tools/CMakeLists.txt?rev=75180&view=auto
==============================================================================
--- poolalloc/trunk/tools/CMakeLists.txt (added)
+++ poolalloc/trunk/tools/CMakeLists.txt Thu Jul 9 17:20:25 2009
@@ -0,0 +1,9 @@
+# Discover the projects that use CMake in the subdirectories.
+# Note that explicit cmake invocation is required every time a new project is
+# added or removed.
+file(GLOB entries *)
+foreach(entry ${entries})
+ if(IS_DIRECTORY ${entry} AND EXISTS ${entry}/CMakeLists.txt)
+ add_subdirectory(${entry})
+ endif()
+endforeach(entry)
Added: poolalloc/trunk/tools/Pa/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/tools/Pa/CMakeLists.txt?rev=75180&view=auto
==============================================================================
--- poolalloc/trunk/tools/Pa/CMakeLists.txt (added)
+++ poolalloc/trunk/tools/Pa/CMakeLists.txt Thu Jul 9 17:20:25 2009
@@ -0,0 +1,4 @@
+set(LLVM_LINK_COMPONENTS bitreader bitwriter instrumentation scalaropts ipo nativecodegen)
+file(GLOB sources *.cpp)
+add_llvm_tool( pa ${sources} )
+target_link_libraries(pa LLVMDataStructure poolalloc)
Modified: poolalloc/trunk/tools/Pa/pa.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/tools/Pa/pa.cpp?rev=75180&r1=75179&r2=75180&view=diff
==============================================================================
--- poolalloc/trunk/tools/Pa/pa.cpp (original)
+++ poolalloc/trunk/tools/Pa/pa.cpp Thu Jul 9 17:20:25 2009
@@ -67,8 +67,6 @@
// main - Entry point for the sc compiler.
//
int main(int argc, char **argv) {
- std::string mt;
- std::string & msg = mt;
LLVMContext Context;
try {
cl::ParseCommandLineOptions(argc, argv, " llvm system compiler\n");
@@ -161,7 +159,7 @@
if (Out != &std::cout) delete Out;
return 0;
- } catch (msg) {
+ } catch (std::string msg) {
std::cerr << argv[0] << ": " << msg << "\n";
} catch (...) {
std::cerr << argv[0] << ": Unexpected unknown exception occurred.\n";
More information about the llvm-commits
mailing list