Skip to content

Commit

Permalink
remove some dead code leftovers (#218)
Browse files Browse the repository at this point in the history
Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
  • Loading branch information
xermicus authored Feb 19, 2025
1 parent 6c2c633 commit 89cdfef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
16 changes: 0 additions & 16 deletions crates/llvm-context/src/polkavm/context/function/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,7 @@ impl FunctionCall {
Name::BlobHash => {
let _arguments = self.pop_arguments_llvm::<D, 1>(context)?;
anyhow::bail!(
"{} The `BLOBHASH` instruction is not supported until zkVM v1.5.0",
"{} The `BLOBHASH` instruction is not supported in revive",
location
);
}
Expand All @@ -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
);
}
Expand Down

0 comments on commit 89cdfef

Please sign in to comment.