From b43eb8200f4d7f1f2f33d0a16672269f01958541 Mon Sep 17 00:00:00 2001 From: Mikhail Glushenkov Date: Wed, 6 May 2009 04:54:23 +0000 Subject: [PATCH] A better error message. llvm-svn: 71068 --- llvm/utils/TableGen/LLVMCConfigurationEmitter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/utils/TableGen/LLVMCConfigurationEmitter.cpp b/llvm/utils/TableGen/LLVMCConfigurationEmitter.cpp index 0157b61f8350..d7e85507141e 100644 --- a/llvm/utils/TableGen/LLVMCConfigurationEmitter.cpp +++ b/llvm/utils/TableGen/LLVMCConfigurationEmitter.cpp @@ -86,8 +86,8 @@ const DagInit& InitPtrToDag(const Init* ptr) { // less than or equal to min_arguments, otherwise throw an exception. void checkNumberOfArguments (const DagInit* d, unsigned min_arguments) { if (!d || d->getNumArgs() < min_arguments) - throw "Property " + d->getOperator()->getAsString() - + " has too few arguments!"; + throw d->getOperator()->getAsString() + + ": too few arguments!"; } // isDagEmpty - is this DAG marked with an empty marker?