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
This commit is contained in:
Mikhail Glushenkov
2010-07-27 11:19:36 +00:00
parent 978bb87f88
commit 67d985ffb2
6 changed files with 59 additions and 48 deletions
+1 -1
View File
@@ -1960,7 +1960,7 @@ struct ActionHandlingCallbackBase
<< "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,