aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Driver/Job.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/clang/Driver/Job.h')
-rw-r--r--include/clang/Driver/Job.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/clang/Driver/Job.h b/include/clang/Driver/Job.h
index 186244bacf31..263356f396f3 100644
--- a/include/clang/Driver/Job.h
+++ b/include/clang/Driver/Job.h
@@ -25,6 +25,7 @@ namespace driver {
class Action;
class Command;
class Tool;
+class InputInfo;
// Re-export this as clang::driver::ArgStringList.
using llvm::opt::ArgStringList;
@@ -53,6 +54,9 @@ class Command {
/// argument, which will be the executable).
llvm::opt::ArgStringList Arguments;
+ /// The list of program arguments which are inputs.
+ llvm::opt::ArgStringList InputFilenames;
+
/// Response file name, if this command is set to use one, or nullptr
/// otherwise
const char *ResponseFile;
@@ -79,7 +83,11 @@ class Command {
public:
Command(const Action &Source, const Tool &Creator, const char *Executable,
- const llvm::opt::ArgStringList &Arguments);
+ const llvm::opt::ArgStringList &Arguments,
+ ArrayRef<InputInfo> Inputs);
+ // FIXME: This really shouldn't be copyable, but is currently copied in some
+ // error handling in Driver::generateCompilationDiagnostics.
+ Command(const Command &) = default;
virtual ~Command() {}
virtual void Print(llvm::raw_ostream &OS, const char *Terminator, bool Quote,
@@ -117,6 +125,7 @@ class FallbackCommand : public Command {
public:
FallbackCommand(const Action &Source_, const Tool &Creator_,
const char *Executable_, const ArgStringList &Arguments_,
+ ArrayRef<InputInfo> Inputs,
std::unique_ptr<Command> Fallback_);
void Print(llvm::raw_ostream &OS, const char *Terminator, bool Quote,