Add Name Init Record Constructor

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

llvm-svn: 142508
This commit is contained in:
David Greene 2011-10-19 13:03:15 +00:00
parent d3a45f0707
commit 38fe00828b
1 changed files with 3 additions and 0 deletions

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() {}