diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-05-03 01:26:33 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-05-19 16:44:16 +0800 |
commit | edd0afa3c35475990bacd8ffe64d15b3be40a036 (patch) | |
tree | 43fe277a01e28007a5de2aada0d6a338aa0fa697 /libsolidity/inlineasm/AsmData.h | |
parent | cc9a99a63fdfbcb0ea9bfb444688a6d094e37b11 (diff) | |
download | dexon-solidity-edd0afa3c35475990bacd8ffe64d15b3be40a036.tar.gz dexon-solidity-edd0afa3c35475990bacd8ffe64d15b3be40a036.tar.zst dexon-solidity-edd0afa3c35475990bacd8ffe64d15b3be40a036.zip |
Support true/false literals in inline assembly
Diffstat (limited to 'libsolidity/inlineasm/AsmData.h')
-rw-r--r-- | libsolidity/inlineasm/AsmData.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libsolidity/inlineasm/AsmData.h b/libsolidity/inlineasm/AsmData.h index 363873ab..8efe1f07 100644 --- a/libsolidity/inlineasm/AsmData.h +++ b/libsolidity/inlineasm/AsmData.h @@ -43,7 +43,8 @@ using TypedNameList = std::vector<TypedName>; /// Direct EVM instruction (except PUSHi and JUMPDEST) struct Instruction { SourceLocation location; solidity::Instruction instruction; }; /// Literal number or string (up to 32 bytes) -struct Literal { SourceLocation location; bool isNumber; std::string value; Type type; }; +enum class LiteralKind { Number, Boolean, String }; +struct Literal { SourceLocation location; LiteralKind kind; std::string value; Type type; }; /// External / internal identifier or label reference struct Identifier { SourceLocation location; std::string name; }; struct FunctionalInstruction; |