ToolChain.cpp revision 1a9c8ca241f576c87e0230fc7c9103bc93d61a08
1//===--- ToolChain.cpp - Collections of tools for one platform ----------*-===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// 9 10#include "clang/Driver/ToolChain.h" 11 12#include "clang/Driver/Action.h" 13#include "clang/Driver/Driver.h" 14#include "clang/Driver/HostInfo.h" 15 16using namespace clang::driver; 17 18ToolChain::ToolChain(const HostInfo &_Host, const char *_Arch, 19 const char *_Platform, const char *_OS) 20 : Host(_Host), Arch(_Arch), Platform(_Platform), OS(_OS) { 21} 22 23ToolChain::~ToolChain() { 24} 25 26llvm::sys::Path ToolChain::GetFilePath(const Compilation &C, 27 const char *Name) const { 28 return Host.getDriver().GetFilePath(Name, *this); 29 30} 31 32llvm::sys::Path ToolChain::GetProgramPath(const Compilation &C, 33 const char *Name) const { 34 return Host.getDriver().GetProgramPath(Name, *this); 35} 36