diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-03-18 02:55:38 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-03-18 02:55:38 +0000 |
commit | 21549237f14505cfc2a18a06416372a36229d0ce (patch) | |
tree | fd80d6fde79c9948f5612ebb7d52161356a1475f /include/clang/Driver/Compilation.h | |
parent | 510d73200ec48496a2b10703385fe99b51e31fa5 (diff) |
Driver: Move actions into Compilation, and construct the compilation
earlier.
- This gives us a simple ownership model, and allows clients access
to more information should they ever want it.
- We now free Actions correctly.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67158 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Driver/Compilation.h')
-rw-r--r-- | include/clang/Driver/Compilation.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/clang/Driver/Compilation.h b/include/clang/Driver/Compilation.h index 4581386769..91e6dc6f44 100644 --- a/include/clang/Driver/Compilation.h +++ b/include/clang/Driver/Compilation.h @@ -30,6 +30,9 @@ class Compilation { /// The original (untranslated) input argument list. ArgList *Args; + /// The list of actions. + ActionList Actions; + /// The root list of jobs. JobList Jobs; @@ -46,7 +49,13 @@ public: Compilation(ToolChain &DefaultToolChain, ArgList *Args); ~Compilation(); + const ToolChain &getDefaultToolChain() const { return DefaultToolChain; } + const ArgList &getArgs() const { return *Args; } + + ActionList &getActions() { return Actions; } + const ActionList &getActions() const { return Actions; } + JobList &getJobs() { return Jobs; } /// getArgsForToolChain - Return the argument list, possibly |