aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/codegen
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-08-29 08:01:47 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-08-29 18:09:18 +0800
commit7fb4a64136af18f2b61aef71ecc33ccbbc790ec6 (patch)
treec44271af2ca3c9a4461a297ba608f1a75910f09b /libsolidity/codegen
parentb364bd048ffaf233782a23dabd13622431a75aa3 (diff)
downloaddexon-solidity-7fb4a64136af18f2b61aef71ecc33ccbbc790ec6.tar
dexon-solidity-7fb4a64136af18f2b61aef71ecc33ccbbc790ec6.tar.gz
dexon-solidity-7fb4a64136af18f2b61aef71ecc33ccbbc790ec6.tar.bz2
dexon-solidity-7fb4a64136af18f2b61aef71ecc33ccbbc790ec6.tar.lz
dexon-solidity-7fb4a64136af18f2b61aef71ecc33ccbbc790ec6.tar.xz
dexon-solidity-7fb4a64136af18f2b61aef71ecc33ccbbc790ec6.tar.zst
dexon-solidity-7fb4a64136af18f2b61aef71ecc33ccbbc790ec6.zip
Move all file specific globals to anonymous namespace
Diffstat (limited to 'libsolidity/codegen')
-rw-r--r--libsolidity/codegen/ContractCompiler.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/libsolidity/codegen/ContractCompiler.cpp b/libsolidity/codegen/ContractCompiler.cpp
index e53f1b94..24d3d959 100644
--- a/libsolidity/codegen/ContractCompiler.cpp
+++ b/libsolidity/codegen/ContractCompiler.cpp
@@ -39,6 +39,9 @@ using namespace std;
using namespace dev;
using namespace dev::solidity;
+namespace
+{
+
/**
* Simple helper class to ensure that the stack height is the same at certain places in the code.
*/
@@ -53,6 +56,8 @@ private:
unsigned stackHeight;
};
+}
+
void ContractCompiler::compileContract(
ContractDefinition const& _contract,
std::map<const ContractDefinition*, eth::Assembly const*> const& _contracts