aboutsummaryrefslogtreecommitdiff
path: root/src/include/jit/llvmjit.h
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2018-08-24 10:20:55 -0700
committerAndres Freund <andres@anarazel.de>2018-08-24 10:21:48 -0700
commit24f127b0042e6bd70e3076cfe0cf13e3bc481037 (patch)
tree4f89898e7c8305c34368ac164491f2c642b6b8af /src/include/jit/llvmjit.h
parent7ed1db3f4625c4cb873a21c380913433820d50ce (diff)
downloadpostgresql-24f127b0042e6bd70e3076cfe0cf13e3bc481037.tar.gz
postgresql-24f127b0042e6bd70e3076cfe0cf13e3bc481037.zip
LLVMJIT: LLVMGetHostCPUFeatures now is upstream, use LLMV version if available.
Noticed thanks to buildfarm animal seawasp. Author: Andres Freund Backpatch: v11-, where LLVM based JIT compliation was introduced.
Diffstat (limited to 'src/include/jit/llvmjit.h')
-rw-r--r--src/include/jit/llvmjit.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/jit/llvmjit.h b/src/include/jit/llvmjit.h
index b0093db49d7..c81cff8a35f 100644
--- a/src/include/jit/llvmjit.h
+++ b/src/include/jit/llvmjit.h
@@ -125,9 +125,11 @@ extern LLVMValueRef slot_compile_deform(struct LLVMJitContext *context, TupleDes
extern char *LLVMGetHostCPUName(void);
#endif
+#if defined(HAVE_DECL_LLVMGETHOSTCPUFEATURES) && !HAVE_DECL_LLVMGETHOSTCPUFEATURES
/** Get the host CPU features as a string. The result needs to be disposed
with LLVMDisposeMessage. */
extern char *LLVMGetHostCPUFeatures(void);
+#endif
#ifdef __cplusplus
} /* extern "C" */