From 4b1a3eab9700aa6f8acac268fc040de73177baac Mon Sep 17 00:00:00 2001 From: DaniPopes <57450786+DaniPopes@users.noreply.github.com> Date: Sun, 21 Jul 2024 09:46:30 +0200 Subject: [PATCH] chore: add more LLVM module flags (#58) --- crates/revmc-llvm/src/lib.rs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/crates/revmc-llvm/src/lib.rs b/crates/revmc-llvm/src/lib.rs index b81733c..9a06081 100644 --- a/crates/revmc-llvm/src/lib.rs +++ b/crates/revmc-llvm/src/lib.rs @@ -9,7 +9,7 @@ use inkwell::{ attributes::{Attribute, AttributeLoc}, basic_block::BasicBlock, execution_engine::ExecutionEngine, - module::Module, + module::{FlagBehavior, Module}, passes::PassBuilderOptions, support::error_handling::install_fatal_error_handler, targets::{ @@ -1141,6 +1141,16 @@ fn create_module<'ctx>(cx: &'ctx Context, machine: &TargetMachine) -> Result