mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-07 08:34:59 +00:00
[TblGen] Inline an (almost) trivial accessor. No functionality change.
llvm-svn: 323276
This commit is contained in:
parent
8cbfbd6d12
commit
0627a33ed4
@ -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