aboutsummaryrefslogtreecommitdiff
path: root/llvm/include/llvm-c/ExecutionEngine.h
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2013-04-03 23:12:39 +0000
committerEvan Cheng <evan.cheng@apple.com>2013-04-03 23:12:39 +0000
commit51a7a9d712dce44179fa09d15d1cbda9f09fa227 (patch)
tree5249102f7f46c0ae6407d28084086b8d396de2ee /llvm/include/llvm-c/ExecutionEngine.h
parentc2d5bf5c53b0e4f29bfa75416d3b0a6fe54a9a44 (diff)
downloadllvm-51a7a9d712dce44179fa09d15d1cbda9f09fa227.zip
llvm-51a7a9d712dce44179fa09d15d1cbda9f09fa227.tar.gz
llvm-51a7a9d712dce44179fa09d15d1cbda9f09fa227.tar.bz2
Make it possible to include llvm-c without including C++ headers. Patch by Filip Pizlo.
llvm-svn: 178713
Diffstat (limited to 'llvm/include/llvm-c/ExecutionEngine.h')
-rw-r--r--llvm/include/llvm-c/ExecutionEngine.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/include/llvm-c/ExecutionEngine.h b/llvm/include/llvm-c/ExecutionEngine.h
index cb77bb2..6ca316c 100644
--- a/llvm/include/llvm-c/ExecutionEngine.h
+++ b/llvm/include/llvm-c/ExecutionEngine.h
@@ -138,7 +138,9 @@ void *LLVMGetPointerToGlobal(LLVMExecutionEngineRef EE, LLVMValueRef Global);
#ifdef __cplusplus
}
+#endif
+#if defined(__cplusplus) && !defined(LLVM_DO_NOT_INCLUDE_CPP_HEADERS)
namespace llvm {
struct GenericValue;
class ExecutionEngine;
@@ -157,7 +159,6 @@ namespace llvm {
#undef DEFINE_SIMPLE_CONVERSION_FUNCTIONS
}
-
-#endif /* defined(__cplusplus) */
+#endif /* defined(__cplusplus) && !defined(LLVM_DO_NOT_INCLUDE_CPP_HEADERS) */
#endif