diff options
author | Ed Schouten <ed@FreeBSD.org> | 2009-06-02 17:58:47 +0000 |
---|---|---|
committer | Ed Schouten <ed@FreeBSD.org> | 2009-06-02 17:58:47 +0000 |
commit | ec2b103c267a06a66e926f62cd96767b280f5cf5 (patch) | |
tree | ce7d964cbb5e39695b71481698f10cb099c23d4a /lib/Driver/ToolChain.cpp | |
download | src-ec2b103c267a06a66e926f62cd96767b280f5cf5.tar.gz src-ec2b103c267a06a66e926f62cd96767b280f5cf5.zip |
Notes
Diffstat (limited to 'lib/Driver/ToolChain.cpp')
-rw-r--r-- | lib/Driver/ToolChain.cpp | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/lib/Driver/ToolChain.cpp b/lib/Driver/ToolChain.cpp new file mode 100644 index 000000000000..20ed31bd6e02 --- /dev/null +++ b/lib/Driver/ToolChain.cpp @@ -0,0 +1,35 @@ +//===--- 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() { +} + +llvm::sys::Path ToolChain::GetFilePath(const Compilation &C, + const char *Name) const { + return Host.getDriver().GetFilePath(Name, *this); + +} + +llvm::sys::Path ToolChain::GetProgramPath(const Compilation &C, + const char *Name, + bool WantFile) const { + return Host.getDriver().GetProgramPath(Name, *this, WantFile); +} |