diff options
Diffstat (limited to 'contrib/llvm/tools/clang/lib/Driver/ToolChain.cpp')
-rw-r--r-- | contrib/llvm/tools/clang/lib/Driver/ToolChain.cpp | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/contrib/llvm/tools/clang/lib/Driver/ToolChain.cpp b/contrib/llvm/tools/clang/lib/Driver/ToolChain.cpp new file mode 100644 index 0000000..9b6264a --- /dev/null +++ b/contrib/llvm/tools/clang/lib/Driver/ToolChain.cpp @@ -0,0 +1,39 @@ +//===--- ToolChain.cpp - Collections of tools for one platform ----------*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +#include "clang/Driver/ToolChain.h" + +#include "clang/Driver/Action.h" +#include "clang/Driver/Driver.h" +#include "clang/Driver/HostInfo.h" + +using namespace clang::driver; + +ToolChain::ToolChain(const HostInfo &_Host, const llvm::Triple &_Triple) + : Host(_Host), Triple(_Triple) { +} + +ToolChain::~ToolChain() { +} + +const Driver &ToolChain::getDriver() const { + return Host.getDriver(); +} + +std::string ToolChain::GetFilePath(const Compilation &C, + const char *Name) const { + return Host.getDriver().GetFilePath(Name, *this); + +} + +std::string ToolChain::GetProgramPath(const Compilation &C, + const char *Name, + bool WantFile) const { + return Host.getDriver().GetProgramPath(Name, *this, WantFile); +} |