llvm.org GIT mirror llvm / 115ca7c
Remove these headers. The files that used to #include them don't any more as most system dependent behavior has been moved to lib/System. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19062 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Spencer 15 years ago
3 changed file(s) with 0 addition(s) and 107 deletion(s). Raw diff Collapse all Expand all
+0
-49
include/llvm/Config/pagesize.h less more
None /*
1 * The LLVM Compiler Infrastructure
2 *
3 * This file was developed by the LLVM research group and is distributed under
4 * the University of Illinois Open Source License. See LICENSE.TXT for details.
5 *
6 ******************************************************************************
7 *
8 * This header file provides a platform-independent way of quering page size.
9 */
10
11 #ifndef PAGESIZE_H
12 #define PAGESIZE_H
13
14 #include "llvm/Config/unistd.h"
15 #include
16
17 namespace llvm {
18
19 /* Compatibility chart:
20 *
21 * Linux/x86: _SC_PAGESIZE, _SC_PAGE_SIZE
22 * MacOS X/PowerPC: v. 10.2: NBPG,
23 * v. 10.3: _SC_PAGESIZE
24 * Solaris/Sparc: _SC_PAGESIZE, _SC_PAGE_SIZE
25 */
26
27 /**
28 * GetPageSize - wrapper to return page size in bytes for various
29 * architecture/OS combinations
30 */
31 unsigned GetPageSize() {
32 #ifdef _SC_PAGESIZE
33 return sysconf(_SC_PAGESIZE);
34 #elif defined(_SC_PAGE_SIZE)
35 return sysconf(_SC_PAGE_SIZE);
36 #elif defined(NBPG)
37 #ifndef CLSIZE
38 #define CLSIZE 1
39 #endif
40 return NBPG * CLSIZE;
41 #else
42 return 4096; /* allocate 4KB as a fall-back */
43 #endif
44 }
45
46 }
47
48 #endif
+0
-33
include/llvm/Config/time.h less more
None /*
1 * The LLVM Compiler Infrastructure
2 *
3 * This file was developed by the LLVM research group and is distributed under
4 * the University of Illinois Open Source License. See LICENSE.TXT for details.
5 *
6 *===----------------------------------------------------------------------===//
7 *
8 * Description:
9 * This header file is the autoconf replacement for time.h (if it lives
10 * on the system).
11 *
12 * The added benefit of this header file is that it removes the
13 * "time with sys/time" problem.
14 *
15 * According to the autoconf manual, some systems have a sys/time.h that
16 * includes time.h, but time.h is not written to handle multiple
17 * inclusion. This means that a program including sys/time.h cannot
18 * also include time.h.
19 *
20 * This header file fixes that problem.
21 */
22
23 #ifndef _CONFIG_TIME_H
24 #define _CONFIG_TIME_H
25
26 #include "llvm/Config/config.h"
27
28 #ifdef HAVE_TIME_H
29 #include
30 #endif
31
32 #endif
+0
-25
include/llvm/Config/windows.h less more
None /*
1 * The LLVM Compiler Infrastructure
2 *
3 * This file was developed by the LLVM research group and is distributed under
4 * the University of Illinois Open Source License. See LICENSE.TXT for details.
5 *
6 ******************************************************************************
7 *
8 * Description:
9 * This header file is the autoconf replacement for windows.h (if it lives
10 * on the system).
11 */
12
13 #ifndef LLVM_CONFIG_WINDOWS_H
14 #define LLVM_CONFIG_WINDOWS_H
15
16 #include "llvm/Config/config.h"
17
18 #ifdef HAVE_WINDOWS_H
19 #include
20 #undef min
21 #undef max
22 #endif
23
24 #endif