Fix an error message regression. Print:

LI8:    (LI8:i64 (imm:i64):$imm)
instead of:
  LI8:    (LI8:MVT::i64 (imm:MVT::i64):$imm)

llvm-svn: 28868
This commit is contained in:
Chris Lattner 2006-06-20 00:56:37 +00:00
parent 868a75bec6
commit 3c71a13e06
1 changed files with 8 additions and 1 deletions

View File

@ -436,7 +436,14 @@ void TreePatternNode::print(std::ostream &OS) const {
case MVT::isFP : OS << ":isFP"; break;
case MVT::isUnknown: ; /*OS << ":?";*/ break;
case MVT::iPTR: OS << ":iPTR"; break;
default: OS << ":" << getTypeNum(0); break;
default: {
std::string VTName = llvm::getName(getTypeNum(0));
// Strip off MVT:: prefix if present.
if (VTName.substr(0,5) == "MVT::")
VTName = VTName.substr(5);
OS << ":" << VTName;
break;
}
}
if (!isLeaf()) {