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);