summaryrefslogtreecommitdiff
path: root/utils/TableGen/Record.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-08-04 04:50:57 +0000
committerChris Lattner <sabre@nondot.org>2003-08-04 04:50:57 +0000
commit40f71134b9fef0ca06c516f033cc9403394a913c (patch)
tree1fb65d1311706e34922d3f7e676129634ad3097b /utils/TableGen/Record.cpp
parent5e2cb8b991cac2bbe38e275947f095dc8682dfc8 (diff)
downloadllvm-40f71134b9fef0ca06c516f033cc9403394a913c.tar.gz
llvm-40f71134b9fef0ca06c516f033cc9403394a913c.tar.bz2
llvm-40f71134b9fef0ca06c516f033cc9403394a913c.tar.xz
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
Diffstat (limited to 'utils/TableGen/Record.cpp')
-rw-r--r--utils/TableGen/Record.cpp7
1 files changed, 7 insertions, 0 deletions
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();
}