Switch namespaces.

This commit is contained in:
chriseth
2018-12-04 15:36:03 +01:00
parent 0b1125281a
commit 7ee1ddc172
4 changed files with 12 additions and 8 deletions
+9 -5
View File
@@ -24,25 +24,28 @@
#include <functional>
namespace yul
{
struct Block;
}
namespace dev
{
namespace eth
{
class Assembly;
}
}
namespace yul
namespace solidity
{
struct Block;
class CodeGenerator
{
public:
/// Performs code generation and appends generated to _assembly.
static void assemble(
Block const& _parsedData,
AsmAnalysisInfo& _analysisInfo,
yul::Block const& _parsedData,
yul::AsmAnalysisInfo& _analysisInfo,
dev::eth::Assembly& _assembly,
yul::ExternalIdentifierAccess const& _identifierAccess = yul::ExternalIdentifierAccess(),
bool _useNamedLabelsForFunctions = false
@@ -50,3 +53,4 @@ public:
};
}
}
+1 -1
View File
@@ -395,7 +395,7 @@ void CompilerContext::appendInlineAssembly(
}
solAssert(errorReporter.errors().empty(), "Failed to analyze inline assembly block.");
yul::CodeGenerator::assemble(*parserResult, analysisInfo, *m_asm, identifierAccess, _system);
CodeGenerator::assemble(*parserResult, analysisInfo, *m_asm, identifierAccess, _system);
// Reset the source location to the one of the node (instead of the CODEGEN source location)
updateSourceLocation();
+1 -1
View File
@@ -618,7 +618,7 @@ bool ContractCompiler::visit(InlineAssembly const& _inlineAssembly)
}
};
solAssert(_inlineAssembly.annotation().analysisInfo, "");
yul::CodeGenerator::assemble(
CodeGenerator::assemble(
_inlineAssembly.operations(),
*_inlineAssembly.annotation().analysisInfo,
m_context.nonConstAssembly(),