aboutsummaryrefslogtreecommitdiffstats
path: root/ExpressionCompiler.cpp
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2015-02-24 00:14:59 +0800
committerLefteris Karapetsas <lefteris@refu.co>2015-02-25 00:16:22 +0800
commit1891020ffb7d91b7eca4f69cc65e3722d6920361 (patch)
treec120bea18512e313f9f97fb0500e292a1b3f0fe8 /ExpressionCompiler.cpp
parent38cb123a82dfa0d77c7eb629dfb9307463548a12 (diff)
downloaddexon-solidity-1891020ffb7d91b7eca4f69cc65e3722d6920361.tar.gz
dexon-solidity-1891020ffb7d91b7eca4f69cc65e3722d6920361.tar.zst
dexon-solidity-1891020ffb7d91b7eca4f69cc65e3722d6920361.zip
Moving Source Location libdevcore
- Big plus is we now remove the useless header libsolibity/BaseTypes.h
Diffstat (limited to 'ExpressionCompiler.cpp')
-rw-r--r--ExpressionCompiler.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/ExpressionCompiler.cpp b/ExpressionCompiler.cpp
index 9f8c8bbb..5a78aaad 100644
--- a/ExpressionCompiler.cpp
+++ b/ExpressionCompiler.cpp
@@ -1035,7 +1035,7 @@ void ExpressionCompiler::appendStateVariableAccessor(VariableDeclaration const&
<< structType->getStorageOffsetOfMember(names[i])
<< eth::Instruction::ADD;
m_currentLValue = LValue(m_context, LValue::LValueType::Storage, types[i]);
- m_currentLValue.retrieveValue(Location(), true);
+ m_currentLValue.retrieveValue(SourceLocation(), true);
solAssert(types[i]->getSizeOnStack() == 1, "Returning struct elements with stack size != 1 not yet implemented.");
m_context << eth::Instruction::SWAP1;
retSizeOnStack += types[i]->getSizeOnStack();
@@ -1047,7 +1047,7 @@ void ExpressionCompiler::appendStateVariableAccessor(VariableDeclaration const&
// simple value
solAssert(accessorType.getReturnParameterTypes().size() == 1, "");
m_currentLValue = LValue(m_context, LValue::LValueType::Storage, returnType);
- m_currentLValue.retrieveValue(Location(), true);
+ m_currentLValue.retrieveValue(SourceLocation(), true);
retSizeOnStack = returnType->getSizeOnStack();
}
solAssert(retSizeOnStack <= 15, "Stack too deep.");
@@ -1068,7 +1068,7 @@ ExpressionCompiler::LValue::LValue(CompilerContext& _compilerContext, LValueType
m_size = unsigned(m_dataType->getSizeOnStack());
}
-void ExpressionCompiler::LValue::fromDeclaration(Declaration const& _declaration, Location const& _location)
+void ExpressionCompiler::LValue::fromDeclaration(Declaration const& _declaration, SourceLocation const& _location)
{
if (m_context->isLocalVariable(&_declaration))
{
@@ -1091,7 +1091,7 @@ void ExpressionCompiler::LValue::fromDeclaration(Declaration const& _declaration
<< errinfo_comment("Identifier type not supported or identifier not found."));
}
-void ExpressionCompiler::LValue::retrieveValue(Location const& _location, bool _remove) const
+void ExpressionCompiler::LValue::retrieveValue(SourceLocation const& _location, bool _remove) const
{
switch (m_type)
{
@@ -1140,7 +1140,7 @@ void ExpressionCompiler::LValue::retrieveValueFromStorage(bool _remove) const
}
}
-void ExpressionCompiler::LValue::storeValue(Type const& _sourceType, Location const& _location, bool _move) const
+void ExpressionCompiler::LValue::storeValue(Type const& _sourceType, SourceLocation const& _location, bool _move) const
{
switch (m_type)
{
@@ -1243,7 +1243,7 @@ void ExpressionCompiler::LValue::storeValue(Type const& _sourceType, Location co
}
}
-void ExpressionCompiler::LValue::setToZero(Location const& _location) const
+void ExpressionCompiler::LValue::setToZero(SourceLocation const& _location) const
{
switch (m_type)
{