mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-06-23 22:21:05 +00:00
remove some dead code leftovers (#218)
Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
This commit is contained in:
@@ -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.
|
/// Sets the pure function attributes.
|
||||||
pub fn set_pure_function_attributes(
|
pub fn set_pure_function_attributes(
|
||||||
llvm: &'ctx inkwell::context::Context,
|
llvm: &'ctx inkwell::context::Context,
|
||||||
|
|||||||
@@ -943,7 +943,7 @@ impl FunctionCall {
|
|||||||
Name::BlobHash => {
|
Name::BlobHash => {
|
||||||
let _arguments = self.pop_arguments_llvm::<D, 1>(context)?;
|
let _arguments = self.pop_arguments_llvm::<D, 1>(context)?;
|
||||||
anyhow::bail!(
|
anyhow::bail!(
|
||||||
"{} The `BLOBHASH` instruction is not supported until zkVM v1.5.0",
|
"{} The `BLOBHASH` instruction is not supported in revive",
|
||||||
location
|
location
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -958,7 +958,7 @@ impl FunctionCall {
|
|||||||
}
|
}
|
||||||
Name::BlobBaseFee => {
|
Name::BlobBaseFee => {
|
||||||
anyhow::bail!(
|
anyhow::bail!(
|
||||||
"{} The `BLOBBASEFEE` instruction is not supported until zkVM v1.5.0",
|
"{} The `BLOBBASEFEE` instruction is not supported in revive",
|
||||||
location
|
location
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user