Add setimmutable and loadimmutable to dialect.

This commit is contained in:
Mathias Baumann
2020-05-04 15:00:50 +02:00
committed by chriseth
parent 53ea962864
commit debcc8c056
12 changed files with 146 additions and 32 deletions
+5
View File
@@ -105,6 +105,11 @@ public:
virtual void appendDataSize(SubID _sub) = 0;
/// Appends the given data to the assembly and returns its ID.
virtual SubID appendData(bytes const& _data) = 0;
/// Appends loading an immutable variable.
virtual void appendImmutable(std::string const& _identifier) = 0;
/// Appends an assignment to an immutable variable.
virtual void appendImmutableAssignment(std::string const& _identifier) = 0;
};
enum class IdentifierContext { LValue, RValue, VariableDeclaration };