aboutsummaryrefslogtreecommitdiffstats
path: root/libjulia
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-01-18 02:18:42 +0800
committerchriseth <chris@ethereum.org>2018-02-07 05:51:30 +0800
commitb8074cdf788ee1cae862929c0428a95cc5248269 (patch)
tree0a89ac871bc0cc23cfe5d6f6075e947ee4d0ec5b /libjulia
parent491d6d3e0c131bcafc10d4bc86df0d6833955cd4 (diff)
downloaddexon-solidity-b8074cdf788ee1cae862929c0428a95cc5248269.tar
dexon-solidity-b8074cdf788ee1cae862929c0428a95cc5248269.tar.gz
dexon-solidity-b8074cdf788ee1cae862929c0428a95cc5248269.tar.bz2
dexon-solidity-b8074cdf788ee1cae862929c0428a95cc5248269.tar.lz
dexon-solidity-b8074cdf788ee1cae862929c0428a95cc5248269.tar.xz
dexon-solidity-b8074cdf788ee1cae862929c0428a95cc5248269.tar.zst
dexon-solidity-b8074cdf788ee1cae862929c0428a95cc5248269.zip
Add flag to indicate whether it can be applied to expressions with side-effects.
Diffstat (limited to 'libjulia')
-rw-r--r--libjulia/optimiser/Utilities.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libjulia/optimiser/Utilities.h b/libjulia/optimiser/Utilities.h
index 88ba3f47..e3b4b087 100644
--- a/libjulia/optimiser/Utilities.h
+++ b/libjulia/optimiser/Utilities.h
@@ -22,11 +22,16 @@
#include <libjulia/ASTDataForward.h>
+#include <libdevcore/Exceptions.h>
+
namespace dev
{
namespace julia
{
+struct IuliaException: virtual Exception {};
+struct OptimizerException: virtual IuliaException {};
+
/// Removes statements that are just empty blocks (non-recursive).
void removeEmptyBlocks(Block& _block);