[llvm-commits] [llvm] r71068 - /llvm/trunk/utils/TableGen/LLVMCConfigurationEmitter.cpp
Mikhail Glushenkov
foldr at codedgers.com
Tue May 5 21:54:23 PDT 2009
Author: foldr
Date: Tue May 5 23:54:23 2009
New Revision: 71068
URL: http://llvm.org/viewvc/llvm-project?rev=71068&view=rev
Log:
A better error message.
Modified:
llvm/trunk/utils/TableGen/LLVMCConfigurationEmitter.cpp
Modified: llvm/trunk/utils/TableGen/LLVMCConfigurationEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/LLVMCConfigurationEmitter.cpp?rev=71068&r1=71067&r2=71068&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/LLVMCConfigurationEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/LLVMCConfigurationEmitter.cpp Tue May 5 23:54:23 2009
@@ -86,8 +86,8 @@
// 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?
More information about the llvm-commits
mailing list