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
This commit is contained in:
Chris Lattner
2003-08-04 04:50:57 +00:00
parent 5e2cb8b991
commit 40f71134b9
8 changed files with 56 additions and 2 deletions

View File

@ -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();
}