[llvm] r323276 - [TblGen] Inline an (almost) trivial accessor. No functionality change.
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 23 15:03:50 PST 2018
Author: d0k
Date: Tue Jan 23 15:03:50 2018
New Revision: 323276
URL: http://llvm.org/viewvc/llvm-project?rev=323276&view=rev
Log:
[TblGen] Inline an (almost) trivial accessor. No functionality change.
Modified:
llvm/trunk/include/llvm/TableGen/Record.h
llvm/trunk/lib/TableGen/Record.cpp
Modified: llvm/trunk/include/llvm/TableGen/Record.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/TableGen/Record.h?rev=323276&r1=323275&r2=323276&view=diff
==============================================================================
--- llvm/trunk/include/llvm/TableGen/Record.h (original)
+++ llvm/trunk/include/llvm/TableGen/Record.h Tue Jan 23 15:03:50 2018
@@ -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;
Modified: llvm/trunk/lib/TableGen/Record.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/TableGen/Record.cpp?rev=323276&r1=323275&r2=323276&view=diff
==============================================================================
--- llvm/trunk/lib/TableGen/Record.cpp (original)
+++ llvm/trunk/lib/TableGen/Record.cpp Tue Jan 23 15:03:50 2018
@@ -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();
More information about the llvm-commits
mailing list