From 2c4e65d460470d9ea19a46446af8ff41f343a3bd Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 27 Mar 2006 22:21:18 +0000 Subject: [PATCH] Print error messages like this: 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/TableGen/DAGISelEmitter.cpp b/utils/TableGen/DAGISelEmitter.cpp index e9d5c421423..7c911bd5be2 100644 --- a/utils/TableGen/DAGISelEmitter.cpp +++ b/utils/TableGen/DAGISelEmitter.cpp @@ -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!");