diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-08-28 22:30:01 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-09-11 22:15:02 +0800 |
commit | 55d2a459a9193024930101c79bbf48af2eb39e2d (patch) | |
tree | 94b86da3bd4e556e3601119362a0d31220d3d78a /libevmasm | |
parent | fbe24da159452f8b22206b6e750174ed03b43ade (diff) | |
download | dexon-solidity-55d2a459a9193024930101c79bbf48af2eb39e2d.tar dexon-solidity-55d2a459a9193024930101c79bbf48af2eb39e2d.tar.gz dexon-solidity-55d2a459a9193024930101c79bbf48af2eb39e2d.tar.bz2 dexon-solidity-55d2a459a9193024930101c79bbf48af2eb39e2d.tar.lz dexon-solidity-55d2a459a9193024930101c79bbf48af2eb39e2d.tar.xz dexon-solidity-55d2a459a9193024930101c79bbf48af2eb39e2d.tar.zst dexon-solidity-55d2a459a9193024930101c79bbf48af2eb39e2d.zip |
Mark functions static in libevmasm
Diffstat (limited to 'libevmasm')
-rw-r--r-- | libevmasm/Assembly.cpp | 4 | ||||
-rw-r--r-- | libevmasm/Assembly.h | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/libevmasm/Assembly.cpp b/libevmasm/Assembly.cpp index 8c1f9296..696ab0b3 100644 --- a/libevmasm/Assembly.cpp +++ b/libevmasm/Assembly.cpp @@ -210,7 +210,7 @@ ostream& Assembly::streamAsm(ostream& _out, string const& _prefix, StringMap con return _out; } -Json::Value Assembly::createJsonValue(string _name, int _begin, int _end, string _value, string _jumpType) const +Json::Value Assembly::createJsonValue(string _name, int _begin, int _end, string _value, string _jumpType) { Json::Value value; value["name"] = _name; @@ -223,7 +223,7 @@ Json::Value Assembly::createJsonValue(string _name, int _begin, int _end, string return value; } -string toStringInHex(u256 _value) +string Assembly::toStringInHex(u256 _value) { std::stringstream hexStr; hexStr << hex << _value; diff --git a/libevmasm/Assembly.h b/libevmasm/Assembly.h index 680cb1af..8116c2ce 100644 --- a/libevmasm/Assembly.h +++ b/libevmasm/Assembly.h @@ -138,7 +138,8 @@ protected: private: Json::Value streamAsmJson(std::ostream& _out, StringMap const& _sourceCodes) const; std::ostream& streamAsm(std::ostream& _out, std::string const& _prefix, StringMap const& _sourceCodes) const; - Json::Value createJsonValue(std::string _name, int _begin, int _end, std::string _value = std::string(), std::string _jumpType = std::string()) const; + static Json::Value createJsonValue(std::string _name, int _begin, int _end, std::string _value = std::string(), std::string _jumpType = std::string()); + static std::string toStringInHex(u256 _value); protected: /// 0 is reserved for exception |