mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-02 00:16:25 +00:00
[TblGen] Inline an (almost) trivial accessor. No functionality change.
llvm-svn: 323276
This commit is contained in:
parent
4d3b657b4e
commit
0cc88116ee
@ -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;
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user