Skip to content

Commit

Permalink
[TblGen] Inline an (almost) trivial accessor. No functionality change.
Browse files Browse the repository at this point in the history
llvm-svn: 323276
  • Loading branch information
d0k committed Jan 23, 2018
1 parent 8cbfbd6 commit 0627a33
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion llvm/include/llvm/TableGen/Record.h
Original file line number Diff line number Diff line change
Expand Up @@ -1309,7 +1309,7 @@ class Record {

unsigned getID() const { return ID; }

StringRef getName() const;
StringRef getName() const { return cast<StringInit>(Name)->getValue(); }

Init *getNameInit() const {
return Name;
Expand Down
4 changes: 0 additions & 4 deletions llvm/lib/TableGen/Record.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 0627a33

Please sign in to comment.