summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm-c/ExecutionEngine.h
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-04-22 22:47:22 +0000
committerEric Christopher <echristo@gmail.com>2013-04-22 22:47:22 +0000
commit04d4e9312c69ef1fa4896e9289beeb3e763e7415 (patch)
treec198830379abfddf31ebde3cecadd3a343a8d4a5 /llvm/include/llvm-c/ExecutionEngine.h
parentebeabab9a9b61b34439fbc243f4e1aab640440b6 (diff)
downloadbcm5719-llvm-04d4e9312c69ef1fa4896e9289beeb3e763e7415.tar.gz
bcm5719-llvm-04d4e9312c69ef1fa4896e9289beeb3e763e7415.zip
Move C++ code out of the C headers and into either C++ headers
or the C++ files themselves. This enables people to use just a C compiler to interoperate with LLVM. llvm-svn: 180063
Diffstat (limited to 'llvm/include/llvm-c/ExecutionEngine.h')
-rw-r--r--llvm/include/llvm-c/ExecutionEngine.h22
1 files changed, 1 insertions, 21 deletions
diff --git a/llvm/include/llvm-c/ExecutionEngine.h b/llvm/include/llvm-c/ExecutionEngine.h
index cb77bb2e2e2..be763312d22 100644
--- a/llvm/include/llvm-c/ExecutionEngine.h
+++ b/llvm/include/llvm-c/ExecutionEngine.h
@@ -137,27 +137,7 @@ void *LLVMGetPointerToGlobal(LLVMExecutionEngineRef EE, LLVMValueRef Global);
*/
#ifdef __cplusplus
-}
-
-namespace llvm {
- struct GenericValue;
- class ExecutionEngine;
-
- #define DEFINE_SIMPLE_CONVERSION_FUNCTIONS(ty, ref) \
- inline ty *unwrap(ref P) { \
- return reinterpret_cast<ty*>(P); \
- } \
- \
- inline ref wrap(const ty *P) { \
- return reinterpret_cast<ref>(const_cast<ty*>(P)); \
- }
-
- DEFINE_SIMPLE_CONVERSION_FUNCTIONS(GenericValue, LLVMGenericValueRef )
- DEFINE_SIMPLE_CONVERSION_FUNCTIONS(ExecutionEngine, LLVMExecutionEngineRef)
-
- #undef DEFINE_SIMPLE_CONVERSION_FUNCTIONS
-}
-
+}
#endif /* defined(__cplusplus) */
#endif
OpenPOWER on IntegriCloud