diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-12-02 03:23:25 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-12-02 03:23:25 +0000 |
commit | daab7b1016f0a82fefa4f7be6e63c57c06b19ffc (patch) | |
tree | e2d0955f9ccb6afa073cff7b6c2075e1b98fe907 /include/clang | |
parent | affe67eae3790c08aba524617d0a68ad618034ac (diff) |
Driver: Add Command::Creator member variable, which tracks the tool that was
used to create a particular command.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90287 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang')
-rw-r--r-- | include/clang/Driver/Job.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/include/clang/Driver/Job.h b/include/clang/Driver/Job.h index 906d73128b..74ca083417 100644 --- a/include/clang/Driver/Job.h +++ b/include/clang/Driver/Job.h @@ -22,7 +22,8 @@ using llvm::dyn_cast_or_null; namespace clang { namespace driver { - class Command; +class Command; +class Tool; class Job { public: @@ -55,6 +56,9 @@ class Command : public Job { /// Source - The action which caused the creation of this job. const Action &Source; + /// Tool - The tool which caused the creation of this job. + const Tool &Creator; + /// The executable to run. const char *Executable; @@ -63,12 +67,15 @@ class Command : public Job { ArgStringList Arguments; public: - Command(const Action &_Source, const char *_Executable, + Command(const Action &_Source, const Tool &_Creator, const char *_Executable, const ArgStringList &_Arguments); /// getSource - Return the Action which caused the creation of this job. const Action &getSource() const { return Source; } + /// getCreator - Return the Tool which caused the creation of this job. + const Tool &getCreator() const { return Creator; } + const char *getExecutable() const { return Executable; } const ArgStringList &getArguments() const { return Arguments; } |