Skip to content

Commit 56acae5

Browse files
committed
Revert "aot_create_comp_context: disable small data section"
This reverts commit 6ae395a.
1 parent 721117a commit 56acae5

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

core/iwasm/compilation/aot_llvm.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2617,15 +2617,6 @@ aot_create_comp_context(const AOTCompData *comp_data, aot_comp_option_t option)
26172617
goto fail;
26182618
}
26192619

2620-
#if LLVM_VERSION_MAJOR >= 9
2621-
/* Disable small data section as our emitter/loader doesn't support it.
2622-
* https://reviews.llvm.org/D57493 */
2623-
LLVMAddModuleFlag(
2624-
comp_ctx->module, LLVMModuleFlagBehaviorWarning, "SmallDataLimit",
2625-
strlen("SmallDataLimit"),
2626-
LLVMValueAsMetadata(LLVMConstInt(LLVMInt32Type(), 0, false)));
2627-
#endif
2628-
26292620
#if WASM_ENABLE_DEBUG_AOT != 0
26302621
if (!(comp_ctx->debug_builder = LLVMCreateDIBuilder(comp_ctx->module))) {
26312622
aot_set_last_error("create LLVM Debug Infor builder failed.");

0 commit comments

Comments
 (0)