summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-03-15 06:03:22 +0000
committerChris Lattner <sabre@nondot.org>2010-03-15 06:03:22 +0000
commit0db1d6500ac67c372fe55f2a82daadecc873df98 (patch)
treefc0d7f5f3ae4866874078a864b6da07a80dfeff7 /llvm/utils/TableGen
parentcabe037b2d98d4d9796828b0e31f531affe1e54f (diff)
downloadbcm5719-llvm-0db1d6500ac67c372fe55f2a82daadecc873df98.tar.gz
bcm5719-llvm-0db1d6500ac67c372fe55f2a82daadecc873df98.zip
eliminate some #if 0 code I added in r96905, type inference
now enforces that input/output named values have hte same type. llvm-svn: 98535
Diffstat (limited to 'llvm/utils/TableGen')
-rw-r--r--llvm/utils/TableGen/CodeGenDAGPatterns.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/llvm/utils/TableGen/CodeGenDAGPatterns.cpp b/llvm/utils/TableGen/CodeGenDAGPatterns.cpp
index 84b4c91924b..6e894a46bce 100644
--- a/llvm/utils/TableGen/CodeGenDAGPatterns.cpp
+++ b/llvm/utils/TableGen/CodeGenDAGPatterns.cpp
@@ -2332,24 +2332,6 @@ void CodeGenDAGPatterns::AddPatternToMatch(const TreePattern *Pattern,
if (SrcNames[I->first].first == 0)
Pattern->error("Pattern has input without matching name in output: $" +
I->first);
-
-#if 0
- const std::vector<unsigned char> &SrcTypeVec =
- SrcNames[I->first].first->getExtTypes();
- const std::vector<unsigned char> &DstTypeVec =
- I->second.first->getExtTypes();
- if (SrcTypeVec == DstTypeVec) continue;
-
- std::string SrcType, DstType;
- for (unsigned i = 0, e = SrcTypeVec.size(); i != e; ++i)
- SrcType += ":" + GetTypeName(SrcTypeVec[i]);
- for (unsigned i = 0, e = DstTypeVec.size(); i != e; ++i)
- DstType += ":" + GetTypeName(DstTypeVec[i]);
-
- Pattern->error("Variable $" + I->first +
- " has different types in source (" + SrcType +
- ") and dest (" + DstType + ") pattern!");
-#endif
}
// Scan all of the named values in the source pattern, rejecting them if the
OpenPOWER on IntegriCloud