A better error message.
authorMikhail Glushenkov <foldr@codedgers.com>
Wed, 6 May 2009 04:54:23 +0000 (04:54 +0000)
committerMikhail Glushenkov <foldr@codedgers.com>
Wed, 6 May 2009 04:54:23 +0000 (04:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71068 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/LLVMCConfigurationEmitter.cpp

index 0157b61f8350f7ead3ce5bbfc7759909df1a815c..d7e85507141e431b7a0eb2368cbe63ca9e2920ea 100644 (file)
@@ -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?