From 38fe00828b6e26e9057d6398e58b261e5c322de4 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. llvm-svn: 142508 --- llvm/include/llvm/TableGen/Record.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/llvm/include/llvm/TableGen/Record.h b/llvm/include/llvm/TableGen/Record.h index 04ca9f3ef3d0..87763a737e7f 100644 --- a/llvm/include/llvm/TableGen/Record.h +++ b/llvm/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() {}