summaryrefslogtreecommitdiff
path: root/src/backend/jit
diff options
context:
space:
mode:
authorAmit Kapila <akapila@postgresql.org>2019-11-12 08:30:16 +0530
committerAmit Kapila <akapila@postgresql.org>2019-11-12 08:30:16 +0530
commit14aec03502302eff6c67981d8fd121175c436ce9 (patch)
treed2960e19d086498964a5eeeb68082ac42fee20f2 /src/backend/jit
parentb6423e92abfadaa1ed9642319872aa1654403cd6 (diff)
downloadpostgresql-14aec03502302eff6c67981d8fd121175c436ce9.tar.gz
Make the order of the header file includes consistent in backend modules.
Similar to commits 7e735035f2 and dddf4cdc33, this commit makes the order of header file inclusion consistent for backend modules. In the passing, removed a couple of duplicate inclusions. Author: Vignesh C Reviewed-by: Kuntal Ghosh and Amit Kapila Discussion: https://postgr.es/m/CALDaNm2Sznv8RR6Ex-iJO6xAdsxgWhCoETkaYX=+9DW3q0QCfA@mail.gmail.com
Diffstat (limited to 'src/backend/jit')
-rw-r--r--src/backend/jit/jit.c7
-rw-r--r--src/backend/jit/llvm/llvmjit.c18
-rw-r--r--src/backend/jit/llvm/llvmjit_expr.c3
3 files changed, 10 insertions, 18 deletions
diff --git a/src/backend/jit/jit.c b/src/backend/jit/jit.c
index 43e65b1a54..e066f7230e 100644
--- a/src/backend/jit/jit.c
+++ b/src/backend/jit/jit.c
@@ -17,19 +17,16 @@
*/
#include "postgres.h"
-
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
-
-#include "fmgr.h"
#include "executor/execExpr.h"
+#include "fmgr.h"
#include "jit/jit.h"
#include "miscadmin.h"
-#include "utils/resowner_private.h"
#include "utils/fmgrprotos.h"
-
+#include "utils/resowner_private.h"
/* GUCs */
bool jit_enabled = true;
diff --git a/src/backend/jit/llvm/llvmjit.c b/src/backend/jit/llvm/llvmjit.c
index 82c4afb701..1c851e00fc 100644
--- a/src/backend/jit/llvm/llvmjit.c
+++ b/src/backend/jit/llvm/llvmjit.c
@@ -13,17 +13,6 @@
#include "postgres.h"
-#include "jit/llvmjit.h"
-#include "jit/llvmjit_emit.h"
-
-#include "miscadmin.h"
-
-#include "utils/memutils.h"
-#include "utils/resowner_private.h"
-#include "portability/instr_time.h"
-#include "storage/ipc.h"
-
-
#include <llvm-c/Analysis.h>
#include <llvm-c/BitReader.h>
#include <llvm-c/BitWriter.h>
@@ -39,6 +28,13 @@
#include <llvm-c/Transforms/Utils.h>
#endif
+#include "jit/llvmjit.h"
+#include "jit/llvmjit_emit.h"
+#include "miscadmin.h"
+#include "portability/instr_time.h"
+#include "storage/ipc.h"
+#include "utils/memutils.h"
+#include "utils/resowner_private.h"
/* Handle of a module emitted via ORC JIT */
typedef struct LLVMJitHandle
diff --git a/src/backend/jit/llvm/llvmjit_expr.c b/src/backend/jit/llvm/llvmjit_expr.c
index d09324637b..a9d362100a 100644
--- a/src/backend/jit/llvm/llvmjit_expr.c
+++ b/src/backend/jit/llvm/llvmjit_expr.c
@@ -23,10 +23,10 @@
#include "access/tupconvert.h"
#include "catalog/objectaccess.h"
#include "catalog/pg_type.h"
+#include "executor/execExpr.h"
#include "executor/execdebug.h"
#include "executor/nodeAgg.h"
#include "executor/nodeSubplan.h"
-#include "executor/execExpr.h"
#include "funcapi.h"
#include "jit/llvmjit.h"
#include "jit/llvmjit_emit.h"
@@ -46,7 +46,6 @@
#include "utils/typcache.h"
#include "utils/xml.h"
-
typedef struct CompiledExprState
{
LLVMJitContext *context;