clang API Documentation

Public Member Functions | Protected Member Functions | Protected Attributes
clang::driver::HostInfo Class Reference

#include <HostInfo.h>

Collaboration diagram for clang::driver::HostInfo:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual ~HostInfo ()
const DrivergetDriver () const
const llvm::Triple & getTriple () const
std::string getArchName () const
std::string getPlatformName () const
std::string getOSName () const
virtual ToolChainCreateToolChain (const ArgList &Args, const char *ArchName=0) const =0

Protected Member Functions

 HostInfo (const Driver &D, const llvm::Triple &_Triple)

Protected Attributes

const DriverTheDriver
const llvm::Triple Triple

Detailed Description

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

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).

Parameters:
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]
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.


Member Data Documentation

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().


The documentation for this class was generated from the following files: