From 6f3afc8583b73e020135701d3df8cf5e24c18fb3 Mon Sep 17 00:00:00 2001 From: Christian Date: Thu, 30 Oct 2014 12:42:04 +0100 Subject: [PATCH] Renamed file. --- libsolidity/Compiler.h | 2 +- libsolidity/{CompilerUtilities.cpp => CompilerContext.cpp} | 0 libsolidity/{CompilerUtilities.h => CompilerContext.h} | 0 libsolidity/ExpressionCompiler.cpp | 1 + libsolidity/ExpressionCompiler.h | 4 ++-- test/solidityExpressionCompiler.cpp | 1 + 6 files changed, 5 insertions(+), 3 deletions(-) rename libsolidity/{CompilerUtilities.cpp => CompilerContext.cpp} (100%) rename libsolidity/{CompilerUtilities.h => CompilerContext.h} (100%) diff --git a/libsolidity/Compiler.h b/libsolidity/Compiler.h index 2ffaaa8d0..5f6d9b4e9 100644 --- a/libsolidity/Compiler.h +++ b/libsolidity/Compiler.h @@ -21,7 +21,7 @@ */ #include -#include +#include namespace dev { namespace solidity { diff --git a/libsolidity/CompilerUtilities.cpp b/libsolidity/CompilerContext.cpp similarity index 100% rename from libsolidity/CompilerUtilities.cpp rename to libsolidity/CompilerContext.cpp diff --git a/libsolidity/CompilerUtilities.h b/libsolidity/CompilerContext.h similarity index 100% rename from libsolidity/CompilerUtilities.h rename to libsolidity/CompilerContext.h diff --git a/libsolidity/ExpressionCompiler.cpp b/libsolidity/ExpressionCompiler.cpp index 76fcc2982..53d2d95d9 100644 --- a/libsolidity/ExpressionCompiler.cpp +++ b/libsolidity/ExpressionCompiler.cpp @@ -25,6 +25,7 @@ #include #include #include +#include using namespace std; diff --git a/libsolidity/ExpressionCompiler.h b/libsolidity/ExpressionCompiler.h index 28a04f525..a930723cc 100644 --- a/libsolidity/ExpressionCompiler.h +++ b/libsolidity/ExpressionCompiler.h @@ -21,11 +21,12 @@ */ #include -#include namespace dev { namespace solidity { +class CompilerContext; // forward + /// Compiler for expressions, i.e. converts an AST tree whose root is an Expression into a stream /// of EVM instructions. It needs a compiler context that is the same for the whole compilation /// unit. @@ -68,7 +69,6 @@ private: void moveToLValue(Expression const& _expression); /// Returns the position of @a m_currentLValue in the stack, where 0 is the top of the stack. unsigned stackPositionOfLValue() const; - void adjustStackOffset(eth::Instruction _instruction); Declaration* m_currentLValue; CompilerContext& m_context; diff --git a/test/solidityExpressionCompiler.cpp b/test/solidityExpressionCompiler.cpp index 2a58d670a..252d2c15e 100644 --- a/test/solidityExpressionCompiler.cpp +++ b/test/solidityExpressionCompiler.cpp @@ -27,6 +27,7 @@ #include #include #include +#include #include #include #include