clang API Documentation

Classes | Public Member Functions | Protected Attributes
clang::driver::toolchains::Generic_GCC Class Reference

#include <ToolChains.h>

Inheritance diagram for clang::driver::toolchains::Generic_GCC:
Inheritance graph
[legend]
Collaboration diagram for clang::driver::toolchains::Generic_GCC:
Collaboration graph
[legend]

List of all members.

Classes

class  GCCInstallationDetector
 This is a class to find a viable GCC installation for Clang to use. More...
struct  GCCVersion
 Struct to store and manipulate GCC versions. More...

Public Member Functions

 Generic_GCC (const Driver &D, const llvm::Triple &Triple)
 ~Generic_GCC ()
virtual ToolSelectTool (const Compilation &C, const JobAction &JA, const ActionList &Inputs) const
virtual bool IsUnwindTablesDefault () const
virtual const char * GetDefaultRelocationModel () const
virtual const char * GetForcedPicModel () const

Protected Member Functions

ToolChain Implementation Helper Functions
bool isTarget64Bit () const
 Check whether the target triple's architecture is 64-bits.
bool isTarget32Bit () const
 Check whether the target triple's architecture is 32-bits. FIXME: This should likely do more than just negate the 64-bit query.

Protected Attributes

GCCInstallationDetector GCCInstallation
llvm::DenseMap< unsigned, Tool * > Tools

Detailed Description

Generic_GCC - A tool chain using the 'gcc' command to perform all subcommands; this relies on gcc translating the majority of command line options.

Definition at line 28 of file ToolChains.h.


Constructor & Destructor Documentation

Generic_GCC::Generic_GCC ( const Driver D,
const llvm::Triple &  Triple 
)
Generic_GCC::~Generic_GCC ( )

Definition at line 1380 of file ToolChains.cpp.

References Tools.


Member Function Documentation

const char * Generic_GCC::GetDefaultRelocationModel ( ) const [virtual]

GetDefaultRelocationModel - Return the LLVM name of the default relocation model for this tool chain.

Implements clang::driver::ToolChain.

Reimplemented in clang::driver::toolchains::Darwin_Generic_GCC.

Definition at line 1435 of file ToolChains.cpp.

const char * Generic_GCC::GetForcedPicModel ( ) const [virtual]

GetForcedPicModel - Return the LLVM name of the forced PIC model for this tool chain, or 0 if this tool chain does not force a particular PIC mode.

Implements clang::driver::ToolChain.

Definition at line 1439 of file ToolChains.cpp.

bool clang::driver::toolchains::Generic_GCC::isTarget32Bit ( ) const [inline, protected]

Check whether the target triple's architecture is 32-bits. FIXME: This should likely do more than just negate the 64-bit query.

Definition at line 143 of file ToolChains.h.

bool clang::driver::toolchains::Generic_GCC::isTarget64Bit ( ) const [inline, protected]

Check whether the target triple's architecture is 64-bits.

Definition at line 137 of file ToolChains.h.

bool Generic_GCC::IsUnwindTablesDefault ( ) const [virtual]

IsUnwindTablesDefault - Does this tool chain use -funwind-tables by default.

Implements clang::driver::ToolChain.

Definition at line 1429 of file ToolChains.cpp.

References clang::driver::ToolChain::getArchName().

Tool & Generic_GCC::SelectTool ( const Compilation C,
const JobAction JA,
const ActionList Inputs 
) const [virtual]

Member Data Documentation

llvm::DenseMap<unsigned, Tool*> clang::driver::toolchains::Generic_GCC::Tools [mutable, protected]

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