aboutsummaryrefslogtreecommitdiffstats
path: root/libevmasm/Instruction.h
diff options
context:
space:
mode:
authorYoichi Hirai <i@yoichihirai.com>2017-01-13 20:19:14 +0800
committerYoichi Hirai <i@yoichihirai.com>2017-01-13 20:19:14 +0800
commit20c62a132da4e32efbde7df3bb1dbdc4f448243f (patch)
tree1917110f9e502885e888bd9fff463c35798919ca /libevmasm/Instruction.h
parente22672b7c739dde9f37a919e63245abda4b1fc89 (diff)
downloaddexon-solidity-20c62a132da4e32efbde7df3bb1dbdc4f448243f.tar
dexon-solidity-20c62a132da4e32efbde7df3bb1dbdc4f448243f.tar.gz
dexon-solidity-20c62a132da4e32efbde7df3bb1dbdc4f448243f.tar.bz2
dexon-solidity-20c62a132da4e32efbde7df3bb1dbdc4f448243f.tar.lz
dexon-solidity-20c62a132da4e32efbde7df3bb1dbdc4f448243f.tar.xz
dexon-solidity-20c62a132da4e32efbde7df3bb1dbdc4f448243f.tar.zst
dexon-solidity-20c62a132da4e32efbde7df3bb1dbdc4f448243f.zip
Make enum Tier into an enum class
Diffstat (limited to 'libevmasm/Instruction.h')
-rw-r--r--libevmasm/Instruction.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libevmasm/Instruction.h b/libevmasm/Instruction.h
index c7fad1c5..4ebaeb98 100644
--- a/libevmasm/Instruction.h
+++ b/libevmasm/Instruction.h
@@ -225,7 +225,7 @@ inline Instruction logInstruction(unsigned _number)
return Instruction(unsigned(Instruction::LOG0) + _number);
}
-enum Tier
+enum class Tier : int
{
ZeroTier = 0, // 0, Zero
BaseTier, // 2, Quick
@@ -246,7 +246,7 @@ struct InstructionInfo
int args; ///< Number of items required on the stack for this instruction (and, for the purposes of ret, the number taken from the stack).
int ret; ///< Number of items placed (back) on the stack by this instruction, assuming args items were removed.
bool sideEffects; ///< false if the only effect on the execution environment (apart from gas usage) is a change to a topmost segment of the stack
- int gasPriceTier; ///< Tier for gas pricing.
+ Tier gasPriceTier; ///< Tier for gas pricing.
};
/// Information on all the instructions.