Call Record Initializer

Call the common Record initializer code from constructors.

llvm-svn: 142509
This commit is contained in:
David Greene 2011-10-19 13:03:21 +00:00
parent 76a2654db8
commit 68668c01b0

View File

@ -1403,9 +1403,11 @@ public:
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() {}