[TblGen] Inline an (almost) trivial accessor. No functionality change.

llvm-svn: 323276
This commit is contained in:
Benjamin Kramer 2018-01-23 23:03:50 +00:00
parent 4d3b657b4e
commit 0cc88116ee
2 changed files with 1 additions and 5 deletions

View File

@ -1309,7 +1309,7 @@ public:
unsigned getID() const { return ID; }
StringRef getName() const;
StringRef getName() const { return cast<StringInit>(Name)->getValue(); }
Init *getNameInit() const {
return Name;

View File

@ -1618,10 +1618,6 @@ DefInit *Record::getDefInit() {
return TheInit;
}
StringRef Record::getName() const {
return cast<StringInit>(Name)->getValue();
}
void Record::setName(Init *NewName) {
Name = NewName;
checkName();