commit | 67d985ffb2d02941dd4e34ecea3f3b8c0fcfaf4f | [log] [tgz] |
---|---|---|
author | Mikhail Glushenkov <foldr@codedgers.com> | Tue Jul 27 11:19:36 2010 +0000 |
committer | Mikhail Glushenkov <foldr@codedgers.com> | Tue Jul 27 11:19:36 2010 +0000 |
tree | c7414f5ee29f8837a3feffc91f156f30ece6a3a3 | |
parent | 978bb87f8871b953d159c2846b379bc93be27972 [diff] [blame] |
Return -1 only on failure to execute a program. Also fix some comments. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109499 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/utils/TableGen/LLVMCConfigurationEmitter.cpp b/utils/TableGen/LLVMCConfigurationEmitter.cpp index be6e398..d4624e2 100644 --- a/utils/TableGen/LLVMCConfigurationEmitter.cpp +++ b/utils/TableGen/LLVMCConfigurationEmitter.cpp
@@ -1960,7 +1960,7 @@ << "PrintError(\"" << (d.getNumArgs() >= 1 ? InitPtrToString(d.getArg(0)) : "Unknown error!") << "\");\n"; - O.indent(IndentLevel) << "return -1;\n"; + O.indent(IndentLevel) << "return 1;\n"; } void onWarningDag(const DagInit& d,