clang API Documentation
#include <HostInfo.h>

Public Member Functions | |
| virtual | ~HostInfo () |
| const Driver & | getDriver () const |
| const llvm::Triple & | getTriple () const |
| std::string | getArchName () const |
| std::string | getPlatformName () const |
| std::string | getOSName () const |
| virtual ToolChain * | CreateToolChain (const ArgList &Args, const char *ArchName=0) const =0 |
Protected Member Functions | |
| HostInfo (const Driver &D, const llvm::Triple &_Triple) | |
Protected Attributes | |
| const Driver & | TheDriver |
| const llvm::Triple | Triple |
HostInfo - Config information about a particular host which may interact with driver behavior.
The host information is used for controlling the parts of the driver which interact with the platform the driver is ostensibly being run from. For testing purposes, the HostInfo used by the driver may differ from the actual host.
Definition at line 29 of file HostInfo.h.
| HostInfo::HostInfo | ( | const Driver & | D, |
| const llvm::Triple & | _Triple | ||
| ) | [protected] |
Definition at line 28 of file HostInfo.cpp.
| HostInfo::~HostInfo | ( | ) | [virtual] |
Definition at line 32 of file HostInfo.cpp.
| virtual ToolChain* clang::driver::HostInfo::CreateToolChain | ( | const ArgList & | Args, |
| const char * | ArchName = 0 |
||
| ) | const [pure virtual] |
CreateToolChain - Construct the toolchain to use for this host (which the host retains ownership of).
| Args | - The argument list, which may be used to alter the default toolchain, for example in the presence of -m32 or -m64. |
| ArchName | - The architecture to return a toolchain for, or 0 if unspecified. This will only ever be non-zero for hosts which support a driver driver. |
Referenced by clang::driver::Driver::BuildCompilation(), and clang::driver::Driver::BuildJobsForAction().
| std::string clang::driver::HostInfo::getArchName | ( | ) | const [inline] |
Definition at line 42 of file HostInfo.h.
References Triple.
| const Driver& clang::driver::HostInfo::getDriver | ( | ) | const [inline] |
Definition at line 39 of file HostInfo.h.
References TheDriver.
Referenced by clang::driver::ToolChain::getDriver(), clang::driver::ToolChain::GetFilePath(), and clang::driver::ToolChain::GetProgramPath().
| std::string clang::driver::HostInfo::getOSName | ( | ) | const [inline] |
Definition at line 44 of file HostInfo.h.
References Triple.
| std::string clang::driver::HostInfo::getPlatformName | ( | ) | const [inline] |
Definition at line 43 of file HostInfo.h.
References Triple.
| const llvm::Triple& clang::driver::HostInfo::getTriple | ( | ) | const [inline] |
Definition at line 41 of file HostInfo.h.
References Triple.
const Driver& clang::driver::HostInfo::TheDriver [protected] |
Definition at line 31 of file HostInfo.h.
Referenced by getDriver().
const llvm::Triple clang::driver::HostInfo::Triple [protected] |
Definition at line 32 of file HostInfo.h.
Referenced by getArchName(), getOSName(), getPlatformName(), and getTriple().