Migrate Declaration to newer property style, class-ify ClassDefinition (#859)

This commit is contained in:
Jon Meow
2021-09-29 14:38:18 -07:00
committed by GitHub
parent 25dce9fbcf
commit d157d96338
11 changed files with 127 additions and 115 deletions
+3 -3
View File
@@ -61,7 +61,7 @@ class Value {
// Returns the enumerator corresponding to the most-derived type of this
// object.
auto Tag() const -> Kind { return tag; }
auto Tag() const -> Kind { return kind; }
void Print(llvm::raw_ostream& out) const;
LLVM_DUMP_METHOD void Dump() const { Print(llvm::errs()); }
@@ -80,10 +80,10 @@ class Value {
protected:
// Constructs a Value. `tag` must be the enumerator corresponding to the
// most-derived type being constructed.
explicit Value(Kind tag) : tag(tag) {}
explicit Value(Kind kind) : kind(kind) {}
private:
const Kind tag;
const Kind kind;
};
using VarValues = std::vector<std::pair<std::string, Nonnull<const Value*>>>;