mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-06-14 09:09:15 +00:00
Revert "aot_create_comp_context: disable small data section"
This reverts commit 6ae395a8ce
.
This commit is contained in:
parent
26c35cbb6c
commit
0df6dc42af
|
@ -2617,15 +2617,6 @@ aot_create_comp_context(const AOTCompData *comp_data, aot_comp_option_t option)
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if LLVM_VERSION_MAJOR >= 9
|
|
||||||
/* Disable small data section as our emitter/loader doesn't support it.
|
|
||||||
* https://reviews.llvm.org/D57493 */
|
|
||||||
LLVMAddModuleFlag(
|
|
||||||
comp_ctx->module, LLVMModuleFlagBehaviorWarning, "SmallDataLimit",
|
|
||||||
strlen("SmallDataLimit"),
|
|
||||||
LLVMValueAsMetadata(LLVMConstInt(LLVMInt32Type(), 0, false)));
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if WASM_ENABLE_DEBUG_AOT != 0
|
#if WASM_ENABLE_DEBUG_AOT != 0
|
||||||
if (!(comp_ctx->debug_builder = LLVMCreateDIBuilder(comp_ctx->module))) {
|
if (!(comp_ctx->debug_builder = LLVMCreateDIBuilder(comp_ctx->module))) {
|
||||||
aot_set_last_error("create LLVM Debug Infor builder failed.");
|
aot_set_last_error("create LLVM Debug Infor builder failed.");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user