mirror of
https://github.com/postgres/postgres.git
synced 2026-04-15 22:10:45 -04:00
Commit9044fc1dneeded a version guard when back-patched, but it is redundant in master as of commit972c2cd2, and I accidentally left it in there.
22 lines
734 B
C
22 lines
734 B
C
/*
|
|
* A small header than can be included by backported LLVM code or PostgreSQL
|
|
* code, to control conditional compilation.
|
|
*/
|
|
#ifndef LLVMJIT_BACKPORT_H
|
|
#define LLVMJIT_BACKPORT_H
|
|
|
|
#include <llvm/Config/llvm-config.h>
|
|
|
|
/*
|
|
* LLVM's RuntimeDyld can produce code that crashes on larger memory ARM
|
|
* systems, because llvm::SectionMemoryManager allocates multiple pieces of
|
|
* memory that can be placed too far apart for the generated code. See
|
|
* src/backend/jit/llvm/SectionMemoryManager.cpp for the patched replacement
|
|
* class llvm::backport::SectionMemoryManager that we use as a workaround.
|
|
* This header controls whether we use it.
|
|
*/
|
|
#if defined(__aarch64__)
|
|
#define USE_LLVM_BACKPORT_SECTION_MEMORY_MANAGER
|
|
#endif
|
|
|
|
#endif
|