commit | b77fc0d9065e860070b0f65c2270123f2cfb5ace | [log] [tgz] |
---|---|---|
author | David Greene <greened@obbligato.org> | Wed Oct 19 13:02:45 2011 +0000 |
committer | David Greene <greened@obbligato.org> | Wed Oct 19 13:02:45 2011 +0000 |
tree | b2b9187cb7506dadfa56a9f4b1600fc71d9996ff | |
parent | db10e691385b507e09aa92db2bb1eb5a4138e991 [diff] [blame] |
Add Record Init Add an init function to be shared among Record constructors. llvm-svn: 142501
diff --git a/llvm/lib/TableGen/Record.cpp b/llvm/lib/TableGen/Record.cpp index b12589b..4f38e14 100644 --- a/llvm/lib/TableGen/Record.cpp +++ b/llvm/lib/TableGen/Record.cpp
@@ -1684,6 +1684,10 @@ 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);