projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0abdadb
)
Add Name Init Record Constructor
author
David Greene
<greened@obbligato.org>
Wed, 19 Oct 2011 13:03:15 +0000
(13:03 +0000)
committer
David Greene
<greened@obbligato.org>
Wed, 19 Oct 2011 13:03:15 +0000
(13:03 +0000)
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
patch
|
blob
|
history
diff --git
a/include/llvm/TableGen/Record.h
b/include/llvm/TableGen/Record.h
index 04ca9f3ef3d0fdab574219475f6323f5c3b11291..87763a737e7fbcd263f25af7625e49a97981272d 100644
(file)
--- 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() {}