opnsense-src/lib/Driver/ToolChain.cpp

40 lines
1.1 KiB
C++
Raw Normal View History

2009-06-02 13:58:47 -04:00
//===--- 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() {
}
2010-01-01 05:34:51 -05:00
const Driver &ToolChain::getDriver() const {
return Host.getDriver();
}
2009-10-14 14:03:49 -04:00
std::string ToolChain::GetFilePath(const Compilation &C,
const char *Name) const {
2009-06-02 13:58:47 -04:00
return Host.getDriver().GetFilePath(Name, *this);
2009-10-14 14:03:49 -04:00
2009-06-02 13:58:47 -04:00
}
2009-10-14 14:03:49 -04:00
std::string ToolChain::GetProgramPath(const Compilation &C,
const char *Name,
bool WantFile) const {
2009-06-02 13:58:47 -04:00
return Host.getDriver().GetProgramPath(Name, *this, WantFile);
}