diff options
author | debris <marek.kotewicz@gmail.com> | 2015-09-08 23:11:02 +0800 |
---|---|---|
committer | debris <marek.kotewicz@gmail.com> | 2015-09-08 23:11:02 +0800 |
commit | 3ca3fb492d2f710f45d690db85089036bfc77b68 (patch) | |
tree | a2a8a869585c22dcba9d5707c3d5d4bdfb722a77 /Assembly.h | |
parent | aea7e04bf4fab1c3f1fc9592c03f6b8a34c41be2 (diff) | |
download | dexon-solidity-3ca3fb492d2f710f45d690db85089036bfc77b68.tar.gz dexon-solidity-3ca3fb492d2f710f45d690db85089036bfc77b68.tar.zst dexon-solidity-3ca3fb492d2f710f45d690db85089036bfc77b68.zip |
applied changes from https://github.com/ethereum/cpp-ethereum/pull/2953
Diffstat (limited to 'Assembly.h')
-rw-r--r-- | Assembly.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -49,7 +49,7 @@ public: AssemblyItem newPushTag() { return AssemblyItem(PushTag, m_usedTags++); } AssemblyItem newData(bytes const& _data) { h256 h = (u256)std::hash<std::string>()(asString(_data)); m_data[h] = _data; return AssemblyItem(PushData, h); } AssemblyItem newSub(Assembly const& _sub) { m_subs.push_back(_sub); return AssemblyItem(PushSub, m_subs.size() - 1); } - Assembly const& getSub(size_t _sub) const { return m_subs.at(_sub); } + Assembly const& sub(size_t _sub) const { return m_subs.at(_sub); } AssemblyItem newPushString(std::string const& _data) { h256 h = (u256)std::hash<std::string>()(_data); m_strings[h] = _data; return AssemblyItem(PushString, h); } AssemblyItem newPushSubSize(u256 const& _subId) { return AssemblyItem(PushSubSize, _subId); } @@ -71,7 +71,7 @@ public: AssemblyItem errorTag() { return AssemblyItem(PushTag, 0); } template <class T> Assembly& operator<<(T const& _d) { append(_d); return *this; } - AssemblyItems const& getItems() const { return m_items; } + AssemblyItems const& items() const { return m_items; } AssemblyItem const& back() const { return m_items.back(); } std::string backString() const { return m_items.size() && m_items.back().type() == PushString ? m_strings.at((h256)m_items.back().data()) : std::string(); } @@ -107,7 +107,7 @@ public: bool _inJsonFormat = false ) const; protected: - std::string getLocationFromSources(StringMap const& _sourceCodes, SourceLocation const& _location) const; + std::string locationFromSources(StringMap const& _sourceCodes, SourceLocation const& _location) const; void donePath() { if (m_totalDeposit != INT_MAX && m_totalDeposit != m_deposit) BOOST_THROW_EXCEPTION(InvalidDeposit()); } unsigned bytesRequired() const; |