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.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/clang/Driver/Job.h b/include/clang/Driver/Job.h
index f60f514641..a23babdbb3 100644
--- a/include/clang/Driver/Job.h
+++ b/include/clang/Driver/Job.h
@@ -52,6 +52,9 @@ public:
/// Command - An executable path/name and argument vector to
/// execute.
class Command : public Job {
+ /// Source - The action which caused the creation of this job.
+ const Action &Source;
+
/// The executable to run.
const char *Executable;
@@ -60,9 +63,14 @@ class Command : public Job {
ArgStringList Arguments;
public:
- Command(const char *_Executable, const ArgStringList &_Arguments);
+ Command(const Action &_Source, const char *_Executable,
+ const ArgStringList &_Arguments);
+
+ /// getSource - Return the Action which caused the creation of this job.
+ const Action &getSource() const { return Source; }
const char *getExecutable() const { return Executable; }
+
const ArgStringList &getArguments() const { return Arguments; }
static bool classof(const Job *J) {