[llvm-commits] [llvm] r142509 - /llvm/trunk/include/llvm/TableGen/Record.h

David Greene greened at obbligato.org
Wed Oct 19 06:03:21 PDT 2011


Author: greened
Date: Wed Oct 19 08:03:21 2011
New Revision: 142509

URL: http://llvm.org/viewvc/llvm-project?rev=142509&view=rev
Log:
Call Record Initializer

Call the common Record initializer code from constructors.

Modified:
    llvm/trunk/include/llvm/TableGen/Record.h

Modified: llvm/trunk/include/llvm/TableGen/Record.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/TableGen/Record.h?rev=142509&r1=142508&r2=142509&view=diff
==============================================================================
--- llvm/trunk/include/llvm/TableGen/Record.h (original)
+++ llvm/trunk/include/llvm/TableGen/Record.h Wed Oct 19 08:03:21 2011
@@ -1403,9 +1403,11 @@
   explicit Record(const std::string &N, SMLoc loc, RecordKeeper &records) :
     ID(LastID++), Name(StringInit::get(N)), Loc(loc), TrackedRecords(records),
       TheInit(0) {
+    init();
   }
   explicit Record(Init *N, SMLoc loc, RecordKeeper &records) :
     ID(LastID++), Name(N), Loc(loc), TrackedRecords(records), TheInit(0) {
+    init();
   }
   ~Record() {}
 





More information about the llvm-commits mailing list