aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Driver/Job.h
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2009-07-04 13:58:54 +0000
committerEd Schouten <ed@FreeBSD.org>2009-07-04 13:58:54 +0000
commit5362a71c02e7d448a8ce98cf00c47e353fba5d04 (patch)
tree8ddfe382e1c6d590dc240e76f7cd45cea5c78e24 /include/clang/Driver/Job.h
parent4ebdf5c4f587daef4e0be499802eac3a7a49bf2f (diff)
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 f60f5146414c..a23babdbb31a 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) {