mirror of
https://github.com/postgres/postgres.git
synced 2025-06-26 12:21:12 +03:00
jit: Require at least LLVM 10.
Remove support for older LLVM versions. The default on common software distributions will be at least LLVM 10 when PostgreSQL 17 ships. Reviewed-by: Peter Eisentraut <peter@eisentraut.org> Discussion: https://postgr.es/m/CA%2BhUKGLhNs5geZaVNj2EJ79Dx9W8fyWUU3HxcpZy55sMGcY%3DiA%40mail.gmail.com
This commit is contained in:
@ -2650,12 +2650,8 @@ create_LifetimeEnd(LLVMModuleRef mod)
|
||||
LLVMTypeRef param_types[2];
|
||||
LLVMContextRef lc;
|
||||
|
||||
/* LLVM 5+ has a variadic pointer argument */
|
||||
#if LLVM_VERSION_MAJOR < 5
|
||||
const char *nm = "llvm.lifetime.end";
|
||||
#else
|
||||
/* variadic pointer argument */
|
||||
const char *nm = "llvm.lifetime.end.p0i8";
|
||||
#endif
|
||||
|
||||
fn = LLVMGetNamedFunction(mod, nm);
|
||||
if (fn)
|
||||
|
Reference in New Issue
Block a user