Print error messages like this:
authorChris Lattner <sabre@nondot.org>
Mon, 27 Mar 2006 22:21:18 +0000 (22:21 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 27 Mar 2006 22:21:18 +0000 (22:21 +0000)
tblgen: In STVEBX: Intrinsic 'llvm.ppc.altivec.stvebx' expects 3 operands, not 2 operands!

instead of like this:
tblgen: In STVEBX: Intrinsic 'intrinsic_void expects 3 operands, not 2 operands!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27185 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/DAGISelEmitter.cpp

index e9d5c421423d6b3141f3f30e65e0729ee5f37c28..7c911bd5be2784c660b088d8432215b0fc9b9a8b 100644 (file)
@@ -649,7 +649,7 @@ bool TreePatternNode::ApplyTypeConstraints(TreePattern &TP, bool NotRegisters) {
     MadeChange = UpdateNodeType(Int.ArgVTs[0], TP);
     
     if (getNumChildren() != Int.ArgVTs.size())
-      TP.error("Intrinsic '" + getOperator()->getName() + " expects " +
+      TP.error("Intrinsic '" + Int.Name + "' expects " +
                utostr(Int.ArgVTs.size()-1) + " operands, not " +
                utostr(getNumChildren()-1) + " operands!");