aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/CompilerDriver/Tool.h
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2010-07-27 11:19:36 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2010-07-27 11:19:36 +0000
commit67d985ffb2d02941dd4e34ecea3f3b8c0fcfaf4f (patch)
treec7414f5ee29f8837a3feffc91f156f30ece6a3a3 /include/llvm/CompilerDriver/Tool.h
parent978bb87f8871b953d159c2846b379bc93be27972 (diff)
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
Diffstat (limited to 'include/llvm/CompilerDriver/Tool.h')
-rw-r--r--include/llvm/CompilerDriver/Tool.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/CompilerDriver/Tool.h b/include/llvm/CompilerDriver/Tool.h
index d064a03eeb..45ef50d0b5 100644
--- a/include/llvm/CompilerDriver/Tool.h
+++ b/include/llvm/CompilerDriver/Tool.h
@@ -38,6 +38,8 @@ namespace llvmc {
virtual ~Tool() {}
+ /// GenerateAction - Generate an Action given particular command-line
+ /// options. Returns non-zero value on error.
virtual int GenerateAction (Action& Out,
const PathVector& inFiles,
const bool HasChildren,
@@ -45,6 +47,8 @@ namespace llvmc {
const InputLanguagesSet& InLangs,
const LanguageMap& LangMap) const = 0;
+ /// GenerateAction - Generate an Action given particular command-line
+ /// options. Returns non-zero value on error.
virtual int GenerateAction (Action& Out,
const llvm::sys::Path& inFile,
const bool HasChildren,