aboutsummaryrefslogtreecommitdiffstats
path: root/libyul/backends
diff options
context:
space:
mode:
authorChristian Parpart <christian@ethereum.org>2018-12-12 21:51:22 +0800
committerChristian Parpart <christian@ethereum.org>2018-12-19 18:26:42 +0800
commit62fe57479e7d8949e4ed2e0efb31238d5d8d6d0a (patch)
treec2592dc9a8a1abae524717c0d081e51bf1ed3c24 /libyul/backends
parentd10bae245ed441314c3bd6ecc74b2a1f3d060d12 (diff)
downloaddexon-solidity-62fe57479e7d8949e4ed2e0efb31238d5d8d6d0a.tar.gz
dexon-solidity-62fe57479e7d8949e4ed2e0efb31238d5d8d6d0a.tar.zst
dexon-solidity-62fe57479e7d8949e4ed2e0efb31238d5d8d6d0a.zip
make use of C++ `= default` constructor declarations as well as more non-static member initialization syntax.
Diffstat (limited to 'libyul/backends')
-rw-r--r--libyul/backends/evm/AbstractAssembly.h2
-rw-r--r--libyul/backends/evm/EVMAssembly.h2
-rw-r--r--libyul/backends/evm/EVMDialect.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/libyul/backends/evm/AbstractAssembly.h b/libyul/backends/evm/AbstractAssembly.h
index 1f224ded..0cc41056 100644
--- a/libyul/backends/evm/AbstractAssembly.h
+++ b/libyul/backends/evm/AbstractAssembly.h
@@ -55,7 +55,7 @@ public:
using LabelID = size_t;
using SubID = size_t;
- virtual ~AbstractAssembly() {}
+ virtual ~AbstractAssembly() = default;
/// Set a new source location valid starting from the next instruction.
virtual void setSourceLocation(langutil::SourceLocation const& _location) = 0;
diff --git a/libyul/backends/evm/EVMAssembly.h b/libyul/backends/evm/EVMAssembly.h
index cef9c19a..e62bc87e 100644
--- a/libyul/backends/evm/EVMAssembly.h
+++ b/libyul/backends/evm/EVMAssembly.h
@@ -38,7 +38,7 @@ class EVMAssembly: public AbstractAssembly
{
public:
explicit EVMAssembly(bool _evm15 = false): m_evm15(_evm15) { }
- virtual ~EVMAssembly() {}
+ virtual ~EVMAssembly() = default;
/// Set a new source location valid starting from the next instruction.
void setSourceLocation(langutil::SourceLocation const& _location) override;
diff --git a/libyul/backends/evm/EVMDialect.cpp b/libyul/backends/evm/EVMDialect.cpp
index 33ee19d4..935f05c6 100644
--- a/libyul/backends/evm/EVMDialect.cpp
+++ b/libyul/backends/evm/EVMDialect.cpp
@@ -38,7 +38,7 @@ using namespace dev::solidity;
EVMDialect::EVMDialect(AsmFlavour _flavour, bool _objectAccess):
- Dialect(_flavour), m_objectAccess(_objectAccess)
+ Dialect{_flavour}, m_objectAccess(_objectAccess)
{
// The EVM instructions will be moved to builtins at some point.
if (!m_objectAccess)