llvm.org GIT mirror llvm / eec5008
Fix PR7809 by creating a header for just llvm variables that can be included in exported interfaces. Update a couple of exported interfaces. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110532 91177308-0d34-0410-b5e6-96231b3b80d8 Eric Christopher 9 years ago
4 changed file(s) with 104 addition(s) and 20 deletion(s). Raw diff Collapse all Expand all
15791579 dnl you MUST also update Makefile.rules so that the variable FilesToConfig
15801580 dnl contains the same list of files as AC_CONFIG_HEADERS below. This ensures the
15811581 dnl files can be updated automatically when their *.in sources change.
1582 AC_CONFIG_HEADERS([include/llvm/Config/config.h])
1582 AC_CONFIG_HEADERS([include/llvm/Config/config.h include/llvm/Config/llvm-config.h])
15831583 AC_CONFIG_FILES([include/llvm/Config/Targets.def])
15841584 AC_CONFIG_FILES([include/llvm/Config/AsmPrinters.def])
15851585 AC_CONFIG_FILES([include/llvm/Config/AsmParsers.def])
0 /*===-- llvm/config/llvm-config.h - llvm configure variable -------*- C -*-===*/
1 /* */
2 /* The LLVM Compiler Infrastructure */
3 /* */
4 /* This file is distributed under the University of Illinois Open Source */
5 /* License. See LICENSE.TXT for details. */
6 /* */
7 /*===----------------------------------------------------------------------===*/
8
9 /* This file enumerates all of the llvm variables from configure so that
10 they can be in exported headers and won't override package specific
11 directives. This is a C file so we can include it in the llvm-c headers. */
12
13 /* Installation directory for binary executables */
14 #undef LLVM_BINDIR
15
16 /* Time at which LLVM was configured */
17 #undef LLVM_CONFIGTIME
18
19 /* Installation directory for data files */
20 #undef LLVM_DATADIR
21
22 /* Installation directory for documentation */
23 #undef LLVM_DOCSDIR
24
25 /* Installation directory for config files */
26 #undef LLVM_ETCDIR
27
28 /* Host triple we were built on */
29 #undef LLVM_HOSTTRIPLE
30
31 /* Installation directory for include files */
32 #undef LLVM_INCLUDEDIR
33
34 /* Installation directory for .info files */
35 #undef LLVM_INFODIR
36
37 /* Installation directory for libraries */
38 #undef LLVM_LIBDIR
39
40 /* Installation directory for man pages */
41 #undef LLVM_MANDIR
42
43 /* Build multithreading support into LLVM */
44 #undef LLVM_MULTITHREADED
45
46 /* LLVM architecture name for the native architecture, if available */
47 #undef LLVM_NATIVE_ARCH
48
49 /* Short LLVM architecture name for the native architecture, if available */
50 #undef LLVM_NATIVE_ARCHNAME
51
52 /* Define if this is Unixish platform */
53 #undef LLVM_ON_UNIX
54
55 /* Define if this is Win32ish platform */
56 #undef LLVM_ON_WIN32
57
58 /* Define to path to circo program if found or 'echo circo' otherwise */
59 #undef LLVM_PATH_CIRCO
60
61 /* Define to path to dot program if found or 'echo dot' otherwise */
62 #undef LLVM_PATH_DOT
63
64 /* Define to path to dotty program if found or 'echo dotty' otherwise */
65 #undef LLVM_PATH_DOTTY
66
67 /* Define to path to fdp program if found or 'echo fdp' otherwise */
68 #undef LLVM_PATH_FDP
69
70 /* Define to path to Graphviz program if found or 'echo Graphviz' otherwise */
71 #undef LLVM_PATH_GRAPHVIZ
72
73 /* Define to path to gv program if found or 'echo gv' otherwise */
74 #undef LLVM_PATH_GV
75
76 /* Define to path to neato program if found or 'echo neato' otherwise */
77 #undef LLVM_PATH_NEATO
78
79 /* Define to path to twopi program if found or 'echo twopi' otherwise */
80 #undef LLVM_PATH_TWOPI
81
82 /* Installation prefix directory */
83 #undef LLVM_PREFIX
1515 #ifndef LLVM_TARGET_TARGETSELECT_H
1616 #define LLVM_TARGET_TARGETSELECT_H
1717
18 #include "llvm/Config/config.h"
18 #include "llvm/Config/llvm-config.h"
1919
2020 extern "C" {
2121 // Declare all of the target-initialization functions that are available.
None /*===-- llvm-c/Target.h - Target Lib C Iface --------------------*- C++ -*-===*\
1 |* *|
2 |* The LLVM Compiler Infrastructure *|
3 |* *|
4 |* This file is distributed under the University of Illinois Open Source *|
5 |* License. See LICENSE.TXT for details. *|
6 |* *|
7 |*===----------------------------------------------------------------------===*|
8 |* *|
9 |* This header declares the C interface to libLLVMTarget.a, which *|
10 |* implements target information. *|
11 |* *|
12 |* Many exotic languages can interoperate with C code but have a harder time *|
13 |* with C++ due to name mangling. So in addition to C, this interface enables *|
14 |* tools written in such languages. *|
15 |* *|
16 \*===----------------------------------------------------------------------===*/
0 /*===-- llvm-c/Target.h - Target Lib C Iface --------------------*- C++ -*-===*/
1 /* */
2 /* The LLVM Compiler Infrastructure */
3 /* */
4 /* This file is distributed under the University of Illinois Open Source */
5 /* License. See LICENSE.TXT for details. */
6 /* */
7 /*===----------------------------------------------------------------------===*/
8 /* */
9 /* This header declares the C interface to libLLVMTarget.a, which */
10 /* implements target information. */
11 /* */
12 /* Many exotic languages can interoperate with C code but have a harder time */
13 /* with C++ due to name mangling. So in addition to C, this interface enables */
14 /* tools written in such languages. */
15 /* */
16 /*===----------------------------------------------------------------------===*/
1717
1818 #ifndef LLVM_C_TARGET_H
1919 #define LLVM_C_TARGET_H
2020
2121 #include "llvm-c/Core.h"
22 #include "llvm/Config/config.h"
22 #include "llvm/Config/llvm-config.h"
2323
2424 #ifdef __cplusplus
2525 extern "C" {