From 4dda8b707968d3b9a92f0930195aa2e14a7f0d58 Mon Sep 17 00:00:00 2001 From: Cyrill Leutwiler Date: Wed, 19 Feb 2025 10:10:43 +0100 Subject: [PATCH] remove some dead code leftovers Signed-off-by: Cyrill Leutwiler --- .../src/polkavm/context/function/mod.rs | 16 ---------------- .../statement/expression/function_call/mod.rs | 4 ++-- 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/crates/llvm-context/src/polkavm/context/function/mod.rs b/crates/llvm-context/src/polkavm/context/function/mod.rs index 42800771..8308116a 100644 --- a/crates/llvm-context/src/polkavm/context/function/mod.rs +++ b/crates/llvm-context/src/polkavm/context/function/mod.rs @@ -212,22 +212,6 @@ impl<'ctx> Function<'ctx> { } } - /// Sets the exception handler attributes. - pub fn set_exception_handler_attributes( - llvm: &'ctx inkwell::context::Context, - declaration: Declaration<'ctx>, - ) { - Self::set_attributes(llvm, declaration, vec![Attribute::NoInline], false); - } - - /// Sets the CXA-throw attributes. - pub fn set_cxa_throw_attributes( - llvm: &'ctx inkwell::context::Context, - declaration: Declaration<'ctx>, - ) { - Self::set_attributes(llvm, declaration, vec![Attribute::NoProfile], false); - } - /// Sets the pure function attributes. pub fn set_pure_function_attributes( llvm: &'ctx inkwell::context::Context, diff --git a/crates/solidity/src/yul/parser/statement/expression/function_call/mod.rs b/crates/solidity/src/yul/parser/statement/expression/function_call/mod.rs index a9060032..c8f35fd9 100644 --- a/crates/solidity/src/yul/parser/statement/expression/function_call/mod.rs +++ b/crates/solidity/src/yul/parser/statement/expression/function_call/mod.rs @@ -943,7 +943,7 @@ impl FunctionCall { Name::BlobHash => { let _arguments = self.pop_arguments_llvm::(context)?; anyhow::bail!( - "{} The `BLOBHASH` instruction is not supported until zkVM v1.5.0", + "{} The `BLOBHASH` instruction is not supported in revive", location ); } @@ -958,7 +958,7 @@ impl FunctionCall { } Name::BlobBaseFee => { anyhow::bail!( - "{} The `BLOBBASEFEE` instruction is not supported until zkVM v1.5.0", + "{} The `BLOBBASEFEE` instruction is not supported in revive", location ); }