diff options
author | Mikhail Glushenkov <foldr@codedgers.com> | 2009-05-06 04:54:23 +0000 |
---|---|---|
committer | Mikhail Glushenkov <foldr@codedgers.com> | 2009-05-06 04:54:23 +0000 |
commit | e031e4bcb91ceafa2ddf0a7480a7135bdf5ebd57 (patch) | |
tree | ad6194cc351a0d37b74f9a770fbf517f4361f3f1 /utils/TableGen/LLVMCConfigurationEmitter.cpp | |
parent | 87e3bcab736e5af501b1cfbf880563d3d2244497 (diff) | |
download | external_llvm-e031e4bcb91ceafa2ddf0a7480a7135bdf5ebd57.tar.gz external_llvm-e031e4bcb91ceafa2ddf0a7480a7135bdf5ebd57.tar.bz2 external_llvm-e031e4bcb91ceafa2ddf0a7480a7135bdf5ebd57.zip |
A better error message.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71068 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/LLVMCConfigurationEmitter.cpp')
-rw-r--r-- | utils/TableGen/LLVMCConfigurationEmitter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/TableGen/LLVMCConfigurationEmitter.cpp b/utils/TableGen/LLVMCConfigurationEmitter.cpp index 0157b61f83..d7e8550714 100644 --- a/utils/TableGen/LLVMCConfigurationEmitter.cpp +++ b/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? |