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 /lib/Driver/ToolChain.cpp | |
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 'lib/Driver/ToolChain.cpp')
-rw-r--r-- | lib/Driver/ToolChain.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Driver/ToolChain.cpp b/lib/Driver/ToolChain.cpp index 11dc9aad8f..87b169e7e9 100644 --- a/lib/Driver/ToolChain.cpp +++ b/lib/Driver/ToolChain.cpp @@ -25,13 +25,13 @@ ToolChain::~ToolChain() { llvm::sys::Path ToolChain::GetFilePath(const Compilation &C, const char *Name) const { - return Host.getDriver().GetFilePath(Name, this); + return Host.getDriver().GetFilePath(Name, *this); } llvm::sys::Path ToolChain::GetProgramPath(const Compilation &C, const char *Name) const { - return Host.getDriver().GetProgramPath(Name, this); + return Host.getDriver().GetProgramPath(Name, *this); } bool ToolChain::ShouldUseClangCompiler(const Compilation &C, |