mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-08-04 23:55:42 +00:00
remove support for legacy evm assembly (#186)
This commit is contained in:
@@ -113,12 +113,6 @@ pub struct Arguments {
|
||||
#[structopt(long = "llvm-ir")]
|
||||
pub llvm_ir: bool,
|
||||
|
||||
/// Forcibly switch to EVM legacy assembly pipeline.
|
||||
/// It is useful for older revisions of `solc` 0.8, where Yul was considered highly experimental
|
||||
/// and contained more bugs than today.
|
||||
#[structopt(long = "force-evmla")]
|
||||
pub force_evmla: bool,
|
||||
|
||||
/// Set metadata hash mode.
|
||||
/// The only supported value is `none` that disables appending the metadata hash.
|
||||
/// Is enabled by default.
|
||||
@@ -248,10 +242,6 @@ impl Arguments {
|
||||
);
|
||||
}
|
||||
|
||||
if self.force_evmla {
|
||||
anyhow::bail!("EVM legacy assembly mode is not supported in Yul, LLVM IR and PolkaVM assembly modes.");
|
||||
}
|
||||
|
||||
if self.disable_solc_optimizer {
|
||||
anyhow::bail!("Disabling the solc optimizer is not supported in Yul, LLVM IR and PolkaVM assembly modes.");
|
||||
}
|
||||
|
||||
@@ -157,7 +157,6 @@ fn main_inner() -> anyhow::Result<()> {
|
||||
revive_solidity::standard_json(
|
||||
&mut solc,
|
||||
arguments.detect_missing_libraries,
|
||||
arguments.force_evmla,
|
||||
arguments.base_path,
|
||||
arguments.include_paths,
|
||||
arguments.allow_paths,
|
||||
@@ -173,7 +172,6 @@ fn main_inner() -> anyhow::Result<()> {
|
||||
evm_version,
|
||||
!arguments.disable_solc_optimizer,
|
||||
optimizer_settings,
|
||||
arguments.force_evmla,
|
||||
include_metadata_hash,
|
||||
arguments.base_path,
|
||||
arguments.include_paths,
|
||||
@@ -193,7 +191,6 @@ fn main_inner() -> anyhow::Result<()> {
|
||||
evm_version,
|
||||
!arguments.disable_solc_optimizer,
|
||||
optimizer_settings,
|
||||
arguments.force_evmla,
|
||||
include_metadata_hash,
|
||||
arguments.base_path,
|
||||
arguments.include_paths,
|
||||
|
||||
Reference in New Issue
Block a user