diff options
Diffstat (limited to 'include/clang')
-rw-r--r-- | include/clang/Driver/Compilation.h | 12 | ||||
-rw-r--r-- | include/clang/Driver/Driver.h | 8 |
2 files changed, 14 insertions, 6 deletions
diff --git a/include/clang/Driver/Compilation.h b/include/clang/Driver/Compilation.h index 0e66796a6e..3ec221f41d 100644 --- a/include/clang/Driver/Compilation.h +++ b/include/clang/Driver/Compilation.h @@ -69,6 +69,11 @@ public: const ActionList &getActions() const { return Actions; } JobList &getJobs() { return Jobs; } + const JobList &getJobs() const { return Jobs; } + + const ArgStringList &getTempFiles() const { return TempFiles; } + + const ArgStringList &getResultFiles() const { return ResultFiles; } /// getArgsForToolChain - Return the derived argument list for the /// tool chain \arg TC (or the default tool chain, if TC is not @@ -89,11 +94,6 @@ public: return Name; } - /// Execute - Execute the compilation jobs and return an - /// appropriate exit code. - int Execute() const; - -private: /// CleanupFileList - Remove the files in the given list. /// /// \param IssueErrors - Report failures as errors. @@ -120,7 +120,7 @@ private: /// ExecuteJob - Execute a single job. /// /// \param FailingCommand - For non-zero results, this will be set to the - /// Command which failed, if any. + /// Command which failed. /// \return The accumulated result code of the job. int ExecuteJob(const Job &J, const Command *&FailingCommand) const; }; diff --git a/include/clang/Driver/Driver.h b/include/clang/Driver/Driver.h index 66e3b97875..c0def2bcca 100644 --- a/include/clang/Driver/Driver.h +++ b/include/clang/Driver/Driver.h @@ -161,6 +161,14 @@ public: /// \arg C - The compilation that is being built. void BuildJobs(Compilation &C) const; + /// ExecuteCompilation - Execute the compilation according to the command line + /// arguments and return an appropriate exit code. + /// + /// This routine handles additional processing that must be done in addition + /// to just running the subprocesses, for example reporting errors, removing + /// temporary files, etc. + int ExecuteCompilation(const Compilation &C) const; + /// @} /// @name Helper Methods /// @{ |