Merge pull request #2360 from ethereum/codegen-cleanup

Remove seldom used CodeGen case
This commit is contained in:
chriseth 2017-06-09 15:40:03 +02:00 committed by GitHub
commit 32dc538369
4 changed files with 3 additions and 19 deletions

View File

@ -132,17 +132,6 @@ private:
eth::Assembly& m_assembly;
};
eth::Assembly assembly::CodeGenerator::assemble(
Block const& _parsedData,
AsmAnalysisInfo& _analysisInfo,
julia::ExternalIdentifierAccess const& _identifierAccess
)
{
eth::Assembly assembly;
EthAssemblyAdapter assemblyAdapter(assembly);
julia::CodeTransform(assemblyAdapter, _analysisInfo, false, _identifierAccess).run(_parsedData);
return assembly;
}
void assembly::CodeGenerator::assemble(
Block const& _parsedData,

View File

@ -41,12 +41,6 @@ struct Block;
class CodeGenerator
{
public:
/// Performs code generation and @returns the result.
static eth::Assembly assemble(
Block const& _parsedData,
AsmAnalysisInfo& _analysisInfo,
julia::ExternalIdentifierAccess const& _identifierAccess = julia::ExternalIdentifierAccess()
);
/// Performs code generation and appends generated to to _assembly.
static void assemble(
Block const& _parsedData,

View File

@ -26,6 +26,7 @@
#include <libsolidity/inlineasm/AsmPrinter.h>
#include <libsolidity/inlineasm/AsmParser.h>
#include <libsolidity/inlineasm/AsmAnalysis.h>
#include <libsolidity/inlineasm/AsmAnalysisInfo.h>
#include <libsolidity/inlineasm/AsmCodeGen.h>
#include <libevmasm/Assembly.h>
@ -86,7 +87,8 @@ eth::LinkerObject AssemblyStack::assemble(Machine _machine) const
{
case Machine::EVM:
{
auto assembly = assembly::CodeGenerator::assemble(*m_parserResult, *m_analysisInfo);
eth::Assembly assembly;
assembly::CodeGenerator::assemble(*m_parserResult, *m_analysisInfo, assembly);
return assembly.assemble();
}
case Machine::EVM15:

View File

@ -21,7 +21,6 @@
#pragma once
#include <libsolidity/inlineasm/AsmAnalysisInfo.h>
#include <libsolidity/interface/ErrorReporter.h>
#include <libevmasm/LinkerObject.h>