summaryrefslogtreecommitdiff
path: root/lib/TableGen/Record.cpp
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2011-10-19 13:02:45 +0000
committerDavid Greene <greened@obbligato.org>2011-10-19 13:02:45 +0000
commitf7931b7040de1c829e678b4e391308bc3376f8a0 (patch)
tree7d565507bc425f361f6d1aec4e2f097f68000c8f /lib/TableGen/Record.cpp
parente22b321d2276b634519165b101b02d92c2fcf5c7 (diff)
downloadllvm-f7931b7040de1c829e678b4e391308bc3376f8a0.tar.gz
llvm-f7931b7040de1c829e678b4e391308bc3376f8a0.tar.bz2
llvm-f7931b7040de1c829e678b4e391308bc3376f8a0.tar.xz
Add Record Init
Add an init function to be shared among Record constructors. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142501 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/TableGen/Record.cpp')
-rw-r--r--lib/TableGen/Record.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/TableGen/Record.cpp b/lib/TableGen/Record.cpp
index b12589b7e8..4f38e144d9 100644
--- a/lib/TableGen/Record.cpp
+++ b/lib/TableGen/Record.cpp
@@ -1684,6 +1684,10 @@ void RecordVal::print(raw_ostream &OS, bool PrintSem) const {
unsigned Record::LastID = 0;
+void Record::init() {
+ checkName();
+}
+
void Record::checkName() {
// Ensure the record name has string type.
const TypedInit *TypedName = dynamic_cast<const TypedInit *>(Name);