Add Name Init Record Constructor

Add a Record constructor that takes the Record name as an Init.  This
is more work toward paste functionality.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142508 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
David Greene 2011-10-19 13:03:15 +00:00
parent 0abdadbce7
commit 675f85d0f2

View File

@ -1404,6 +1404,9 @@ public:
ID(LastID++), Name(StringInit::get(N)), Loc(loc), TrackedRecords(records),
TheInit(0) {
}
explicit Record(Init *N, SMLoc loc, RecordKeeper &records) :
ID(LastID++), Name(N), Loc(loc), TrackedRecords(records), TheInit(0) {
}
~Record() {}