llvm.org GIT mirror llvm / 9313da5
Revert r178713 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178769 91177308-0d34-0410-b5e6-96231b3b80d8 Evan Cheng 6 years ago
6 changed file(s) with 17 addition(s) and 33 deletion(s). Raw diff Collapse all Expand all
1616
1717 #include "llvm/Support/DataTypes.h"
1818
19 #if defined(__cplusplus) && !defined(LLVM_DO_NOT_INCLUDE_CPP_HEADERS)
19 #ifdef __cplusplus
20
2021 /* Need these includes to support the LLVM 'cast' template for the C++ 'wrap'
2122 and 'unwrap' conversion functions. */
2223 #include "llvm/IR/IRBuilder.h"
2324 #include "llvm/IR/Module.h"
2425 #include "llvm/PassRegistry.h"
25 #endif /* defined(__cplusplus) && !defined(LLVM_DO_NOT_INCLUDE_CPP_HEADERS) */
26
27 #ifdef __cplusplus
26
2827 extern "C" {
2928 #endif
3029
26692668
26702669 #ifdef __cplusplus
26712670 }
2672 #endif
2673
2674 #if defined(__cplusplus) && !defined(LLVM_DO_NOT_INCLUDE_CPP_HEADERS)
2671
26752672 namespace llvm {
26762673 class MemoryBuffer;
26772674 class PassManagerBase;
27652762 }
27662763 }
27672764
2768 #endif /* defined(__cplusplus) && !defined(LLVM_DO_NOT_INCLUDE_CPP_HEADERS) */
2769
2770 #endif /* defined(LLVM_C_CORE_H) */
2765 #endif /* !defined(__cplusplus) */
2766
2767 #endif /* !defined(LLVM_C_CORE_H) */
137137
138138 #ifdef __cplusplus
139139 }
140 #endif
141140
142 #if defined(__cplusplus) && !defined(LLVM_DO_NOT_INCLUDE_CPP_HEADERS)
143141 namespace llvm {
144142 struct GenericValue;
145143 class ExecutionEngine;
158156
159157 #undef DEFINE_SIMPLE_CONVERSION_FUNCTIONS
160158 }
161 #endif /* defined(__cplusplus) && !defined(LLVM_DO_NOT_INCLUDE_CPP_HEADERS) */
159
160 #endif /* defined(__cplusplus) */
162161
163162 #endif
2121 #include "llvm-c/Core.h"
2222 #include "llvm/Config/llvm-config.h"
2323
24 #if defined(__cplusplus) && !defined(LLVM_DO_NOT_INCLUDE_CPP_HEADERS)
24 #ifdef __cplusplus
2525 #include "llvm/Object/ObjectFile.h"
26 #endif /* defined(__cplusplus) && !defined(LLVM_DO_NOT_INCLUDE_CPP_HEADERS) */
2726
28 #ifdef __cplusplus
2927 extern "C" {
3028 #endif
3129
10098
10199 #ifdef __cplusplus
102100 }
103 #endif
104101
105 #if defined(__cplusplus) && !defined(LLVM_DO_NOT_INCLUDE_CPP_HEADERS)
106102 namespace llvm {
107103 namespace object {
108104 inline ObjectFile *unwrap(LLVMObjectFileRef OF) {
145141
146142 }
147143 }
148 #endif /* defined(__cplusplus) && !defined(LLVM_DO_NOT_INCLUDE_CPP_HEADERS) */
149144
145 #endif /* defined(__cplusplus) */
150146
151147 #endif
152148
234234
235235 #ifdef __cplusplus
236236 }
237 #endif
238
239 #if defined(__cplusplus) && !defined(LLVM_DO_NOT_INCLUDE_CPP_HEADERS)
237
240238 namespace llvm {
241239 class DataLayout;
242240 class TargetLibraryInfo;
258256 return reinterpret_cast(X);
259257 }
260258 }
261 #endif /* defined(__cplusplus) && !defined(LLVM_DO_NOT_INCLUDE_CPP_HEADERS) */
259
260 #endif /* defined(__cplusplus) */
262261
263262 #endif
118118
119119 #ifdef __cplusplus
120120 }
121 #endif
122121
123 #if defined(__cplusplus) && !defined(LLVM_DO_NOT_INCLUDE_CPP_HEADERS)
124122 namespace llvm {
125123 class TargetMachine;
126124 class Target;
139137 return reinterpret_cast(const_cast(P));
140138 }
141139 }
142 #endif /* defined(__cplusplus) && !defined(LLVM_DO_NOT_INCLUDE_CPP_HEADERS) */
140 #endif
143141
144142 #endif
1717
1818 typedef struct LLVMOpaquePassManagerBuilder *LLVMPassManagerBuilderRef;
1919
20 #if defined(__cplusplus) && !defined(LLVM_DO_NOT_INCLUDE_CPP_HEADERS)
20 #ifdef __cplusplus
2121 #include "llvm/Transforms/IPO/PassManagerBuilder.h"
22 #endif
23
24 #ifdef __cplusplus
2522 extern "C" {
2623 #endif
2724
8885
8986 #ifdef __cplusplus
9087 }
91 #endif
9288
93 #if defined(__cplusplus) && !defined(LLVM_DO_NOT_INCLUDE_CPP_HEADERS)
9489 namespace llvm {
9590 inline PassManagerBuilder *unwrap(LLVMPassManagerBuilderRef P) {
9691 return reinterpret_cast(P);
10095 return reinterpret_cast(P);
10196 }
10297 }
103 #endif /* defined(__cplusplus) && !defined(LLVM_DO_NOT_INCLUDE_CPP_HEADERS) */
98 #endif
10499
105100 #endif