mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Rename assemble() to assembleYul() in CompilerStack and CommandLineInterface
This commit is contained in:
parent
ded9ef17e8
commit
611e02c038
@ -1284,7 +1284,7 @@ bool onlySafeExperimentalFeaturesActivated(set<ExperimentalFeature> const& featu
|
||||
}
|
||||
}
|
||||
|
||||
void CompilerStack::assemble(
|
||||
void CompilerStack::assembleYul(
|
||||
ContractDefinition const& _contract,
|
||||
shared_ptr<evmasm::Assembly> _assembly,
|
||||
shared_ptr<evmasm::Assembly> _runtimeAssembly
|
||||
@ -1397,7 +1397,7 @@ void CompilerStack::compileContract(
|
||||
|
||||
_otherCompilers[compiledContract.contract] = compiler;
|
||||
|
||||
assemble(_contract, compiler->assemblyPtr(), compiler->runtimeAssemblyPtr());
|
||||
assembleYul(_contract, compiler->assemblyPtr(), compiler->runtimeAssemblyPtr());
|
||||
}
|
||||
|
||||
void CompilerStack::generateIR(ContractDefinition const& _contract)
|
||||
@ -1475,7 +1475,7 @@ void CompilerStack::generateEVMFromIR(ContractDefinition const& _contract)
|
||||
string deployedName = IRNames::deployedObject(_contract);
|
||||
solAssert(!deployedName.empty(), "");
|
||||
tie(compiledContract.evmAssembly, compiledContract.evmRuntimeAssembly) = stack.assembleEVMWithDeployed(deployedName);
|
||||
assemble(_contract, compiledContract.evmAssembly, compiledContract.evmRuntimeAssembly);
|
||||
assembleYul(_contract, compiledContract.evmAssembly, compiledContract.evmRuntimeAssembly);
|
||||
}
|
||||
|
||||
void CompilerStack::generateEwasm(ContractDefinition const& _contract)
|
||||
|
@ -426,7 +426,7 @@ private:
|
||||
|
||||
/// Assembles the contract.
|
||||
/// This function should only be internally called by compileContract and generateEVMFromIR.
|
||||
void assemble(
|
||||
void assembleYul(
|
||||
ContractDefinition const& _contract,
|
||||
std::shared_ptr<evmasm::Assembly> _assembly,
|
||||
std::shared_ptr<evmasm::Assembly> _runtimeAssembly
|
||||
|
@ -661,7 +661,7 @@ void CommandLineInterface::processInput()
|
||||
serveLSP();
|
||||
break;
|
||||
case InputMode::Assembler:
|
||||
assemble(m_options.assembly.inputLanguage, m_options.assembly.targetMachine);
|
||||
assembleYul(m_options.assembly.inputLanguage, m_options.assembly.targetMachine);
|
||||
break;
|
||||
case InputMode::Linker:
|
||||
link();
|
||||
@ -1030,7 +1030,7 @@ string CommandLineInterface::objectWithLinkRefsHex(evmasm::LinkerObject const& _
|
||||
return out;
|
||||
}
|
||||
|
||||
void CommandLineInterface::assemble(yul::YulStack::Language _language, yul::YulStack::Machine _targetMachine)
|
||||
void CommandLineInterface::assembleYul(yul::YulStack::Language _language, yul::YulStack::Machine _targetMachine)
|
||||
{
|
||||
solAssert(m_options.input.mode == InputMode::Assembler);
|
||||
|
||||
|
@ -92,7 +92,7 @@ private:
|
||||
/// @returns the full object with library placeholder hints in hex.
|
||||
static std::string objectWithLinkRefsHex(evmasm::LinkerObject const& _obj);
|
||||
|
||||
void assemble(yul::YulStack::Language _language, yul::YulStack::Machine _targetMachine);
|
||||
void assembleYul(yul::YulStack::Language _language, yul::YulStack::Machine _targetMachine);
|
||||
|
||||
void outputCompilationResults();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user