aboutsummaryrefslogtreecommitdiff
path: root/src/backend/jit/llvm/llvmjit.c
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2018-03-26 12:58:17 -0700
committerAndres Freund <andres@anarazel.de>2018-03-26 12:58:17 -0700
commit96b5eac9186e033c67944124803ef5aa8f246afc (patch)
tree698dd58e46b3cb6d0b7ef495ef552121074d9a31 /src/backend/jit/llvm/llvmjit.c
parent32af96b2b118cd204ca809d7c48c7f8ea7f879cf (diff)
downloadpostgresql-96b5eac9186e033c67944124803ef5aa8f246afc.tar.gz
postgresql-96b5eac9186e033c67944124803ef5aa8f246afc.zip
Correct some typos in the new JIT code.
Author: Thomas Munro
Diffstat (limited to 'src/backend/jit/llvm/llvmjit.c')
-rw-r--r--src/backend/jit/llvm/llvmjit.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/backend/jit/llvm/llvmjit.c b/src/backend/jit/llvm/llvmjit.c
index d73237d002d..bbf30b31552 100644
--- a/src/backend/jit/llvm/llvmjit.c
+++ b/src/backend/jit/llvm/llvmjit.c
@@ -247,7 +247,7 @@ llvm_get_function(LLVMJitContext *context, const char *funcname)
/*
* If there is a pending / not emitted module, compile and emit now.
- * Otherwise we migh not find the [correct] function.
+ * Otherwise we might not find the [correct] function.
*/
if (!context->compiled)
{
@@ -266,7 +266,7 @@ llvm_get_function(LLVMJitContext *context, const char *funcname)
addr = 0;
if (LLVMOrcGetSymbolAddressIn(handle->stack, &addr, handle->orc_handle, funcname))
- elog(ERROR, "failed to lookup symbol \"%s\"", funcname);
+ elog(ERROR, "failed to look up symbol \"%s\"", funcname);
if (addr)
return (void *) (uintptr_t) addr;
}
@@ -280,11 +280,11 @@ llvm_get_function(LLVMJitContext *context, const char *funcname)
return (void *) (uintptr_t) addr;
#else
if (LLVMOrcGetSymbolAddress(llvm_opt0_orc, &addr, funcname))
- elog(ERROR, "failed to lookup symbol \"%s\"", funcname);
+ elog(ERROR, "failed to look up symbol \"%s\"", funcname);
if (addr)
return (void *) (uintptr_t) addr;
if (LLVMOrcGetSymbolAddress(llvm_opt3_orc, &addr, funcname))
- elog(ERROR, "failed to lookup symbol \"%s\"", funcname);
+ elog(ERROR, "failed to look up symbol \"%s\"", funcname);
if (addr)
return (void *) (uintptr_t) addr;
#endif /* LLVM_VERSION_MAJOR */
@@ -540,7 +540,7 @@ llvm_compile_module(LLVMJitContext *context)
if (LLVMOrcAddEagerlyCompiledIR(compile_orc, &orc_handle, smod,
llvm_resolve_symbol, NULL))
{
- elog(ERROR, "failed to jit module");
+ elog(ERROR, "failed to JIT module");
}
LLVMOrcDisposeSharedModuleRef(smod);
}
@@ -847,7 +847,7 @@ llvm_resolve_symbol(const char *symname, void *ctx)
char *modname;
/*
- * OSX prefixes all object level symbols with an underscore. But neither
+ * macOS prefixes all object level symbols with an underscore. But neither
* dlsym() nor PG's inliner expect that. So undo.
*/
#if defined(__darwin__)