aboutsummaryrefslogtreecommitdiff
path: root/src/include/jit/llvmjit_emit.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/jit/llvmjit_emit.h')
-rw-r--r--src/include/jit/llvmjit_emit.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/include/jit/llvmjit_emit.h b/src/include/jit/llvmjit_emit.h
index 41145fc517a..9569da6fbf1 100644
--- a/src/include/jit/llvmjit_emit.h
+++ b/src/include/jit/llvmjit_emit.h
@@ -9,9 +9,17 @@
#ifndef LLVMJIT_EMIT_H
#define LLVMJIT_EMIT_H
+/*
+ * To avoid breaking cpluspluscheck, allow including the file even when LLVM
+ * is not available.
+ */
+#ifdef USE_LLVM
#include <llvm-c/Core.h>
+#include "fmgr.h"
+#include "jit/llvmjit.h"
+
/*
* Emit a non-LLVM pointer as an LLVM constant.
@@ -263,4 +271,5 @@ l_funcvalue(LLVMBuilderRef b, LLVMValueRef v_fcinfo, size_t argno)
return LLVMBuildLoad(b, l_funcvaluep(b, v_fcinfo, argno), "");
}
+#endif /* USE_LLVM */
#endif