From 675f85d0f240930d571f4e557bb92237ee48124e Mon Sep 17 00:00:00 2001 From: David Greene Date: Wed, 19 Oct 2011 13:03:15 +0000 Subject: [PATCH] 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 --- include/llvm/TableGen/Record.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/llvm/TableGen/Record.h b/include/llvm/TableGen/Record.h index 04ca9f3ef3d..87763a737e7 100644 --- a/include/llvm/TableGen/Record.h +++ b/include/llvm/TableGen/Record.h @@ -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() {} -- 2.34.1