Move LabelIDs to generation phase.

This commit is contained in:
chriseth
2017-06-13 22:01:15 +02:00
parent 3699d27cc9
commit 45d96959f8
3 changed files with 47 additions and 31 deletions
+1 -5
View File
@@ -75,17 +75,13 @@ struct Scope
JuliaType type;
};
struct Label
{
boost::optional<LabelID> id;
};
struct Label { };
struct Function
{
Function(std::vector<JuliaType> const& _arguments, std::vector<JuliaType> const& _returns): arguments(_arguments), returns(_returns) {}
std::vector<JuliaType> arguments;
std::vector<JuliaType> returns;
boost::optional<LabelID> id;
};
using Identifier = boost::variant<Variable, Label, Function>;