From 40f71134b9fef0ca06c516f033cc9403394a913c Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 4 Aug 2003 04:50:57 +0000 Subject: Add initial support for a new 'dag' type git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7559 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/TableGen/Record.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'utils/TableGen/Record.cpp') diff --git a/utils/TableGen/Record.cpp b/utils/TableGen/Record.cpp index 781fecf820..968f367bd7 100644 --- a/utils/TableGen/Record.cpp +++ b/utils/TableGen/Record.cpp @@ -146,6 +146,13 @@ Init *ListRecTy::convertValue(TypedInit *TI) { return 0; } +Init *DagRecTy::convertValue(TypedInit *TI) { + if (TI->getType()->typeIsConvertibleTo(this)) + return TI; + return 0; +} + + void RecordRecTy::print(std::ostream &OS) const { OS << Rec->getName(); } -- cgit v1.2.3