diff options
author | chriseth <c@ethdev.com> | 2016-04-12 06:54:14 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2016-04-12 07:03:46 +0800 |
commit | 6f54b13d7aae874f378149fbdb66a6bc8c132f5a (patch) | |
tree | 1f7ba5c7d2504fac7f036181f2d0f9e87c73c130 /libevmasm | |
parent | 193b1c940ce3e21d52e2cbdd253c1d7cb820fa06 (diff) | |
download | dexon-solidity-6f54b13d7aae874f378149fbdb66a6bc8c132f5a.tar dexon-solidity-6f54b13d7aae874f378149fbdb66a6bc8c132f5a.tar.gz dexon-solidity-6f54b13d7aae874f378149fbdb66a6bc8c132f5a.tar.bz2 dexon-solidity-6f54b13d7aae874f378149fbdb66a6bc8c132f5a.tar.lz dexon-solidity-6f54b13d7aae874f378149fbdb66a6bc8c132f5a.tar.xz dexon-solidity-6f54b13d7aae874f378149fbdb66a6bc8c132f5a.tar.zst dexon-solidity-6f54b13d7aae874f378149fbdb66a6bc8c132f5a.zip |
Remove log.h from solidity.
Diffstat (limited to 'libevmasm')
-rw-r--r-- | libevmasm/Assembly.cpp | 9 | ||||
-rw-r--r-- | libevmasm/Instruction.cpp | 1 |
2 files changed, 0 insertions, 10 deletions
diff --git a/libevmasm/Assembly.cpp b/libevmasm/Assembly.cpp index 7277865e..7f7e1b9c 100644 --- a/libevmasm/Assembly.cpp +++ b/libevmasm/Assembly.cpp @@ -21,7 +21,6 @@ #include "Assembly.h" #include <fstream> -#include <libdevcore/Log.h> #include <libevmasm/CommonSubexpressionEliminator.h> #include <libevmasm/ControlFlowGraph.h> #include <libevmasm/BlockDeduplicator.h> @@ -307,9 +306,6 @@ void Assembly::injectStart(AssemblyItem const& _i) m_items.insert(m_items.begin(), _i); } -struct OptimiserChannel: public LogChannel { static const char* name() { return "OPT"; } static const int verbosity = 12; }; -#define copt dev::LogOutputStream<OptimiserChannel, true>() - Assembly& Assembly::optimise(bool _enable, bool _isCreation, size_t _runs) { if (!_enable) @@ -318,10 +314,8 @@ Assembly& Assembly::optimise(bool _enable, bool _isCreation, size_t _runs) unsigned total = 0; for (unsigned count = 1; count > 0; total += count) { - copt << toString(*this); count = 0; - copt << "Performing optimisation..."; // This only modifies PushTags, we have to run again to actually remove code. BlockDeduplicator dedup(m_items); if (dedup.deduplicate()) @@ -360,7 +354,6 @@ Assembly& Assembly::optimise(bool _enable, bool _isCreation, size_t _runs) if (shouldReplace) { - copt << "Old size: " << (iter - orig) << ", new size: " << optimisedChunk.size(); count++; optimisedItems += optimisedChunk; } @@ -384,8 +377,6 @@ Assembly& Assembly::optimise(bool _enable, bool _isCreation, size_t _runs) m_items ); - copt << total << " optimisations done."; - for (auto& sub: m_subs) sub.optimise(true, false, _runs); diff --git a/libevmasm/Instruction.cpp b/libevmasm/Instruction.cpp index da765c41..d854dfec 100644 --- a/libevmasm/Instruction.cpp +++ b/libevmasm/Instruction.cpp @@ -24,7 +24,6 @@ #include <functional> #include <libdevcore/Common.h> #include <libdevcore/CommonIO.h> -#include <libdevcore/Log.h> using namespace std; using namespace dev; using namespace dev::solidity; |