clang API Documentation
#include <ToolChains.h>
Public Member Functions | |
Hexagon_TC (const Driver &D, const llvm::Triple &Triple, const llvm::opt::ArgList &Args) | |
~Hexagon_TC () | |
void | AddClangSystemIncludeArgs (const llvm::opt::ArgList &DriverArgs, llvm::opt::ArgStringList &CC1Args) const override |
Add the clang cc1 arguments for system include paths. | |
void | AddClangCXXStdlibIncludeArgs (const llvm::opt::ArgList &DriverArgs, llvm::opt::ArgStringList &CC1Args) const override |
CXXStdlibType | GetCXXStdlibType (const llvm::opt::ArgList &Args) const override |
StringRef | GetGCCLibAndIncVersion () const |
Static Public Member Functions | |
static std::string | GetGnuDir (const std::string &InstalledDir, const llvm::opt::ArgList &Args) |
Hexagon Toolchain. | |
static StringRef | GetTargetCPU (const llvm::opt::ArgList &Args) |
Protected Member Functions | |
Tool * | buildAssembler () const override |
Tool * | buildLinker () const override |
Protected Attributes | |
GCCVersion | GCCLibAndIncVersion |
Definition at line 691 of file ToolChains.h.
Hexagon_TC::Hexagon_TC | ( | const Driver & | D, |
const llvm::Triple & | Triple, | ||
const llvm::opt::ArgList & | Args | ||
) |
Definition at line 2165 of file ToolChains.cpp.
References GCCLibAndIncVersion, clang::driver::ToolChain::getDriver(), clang::driver::ToolChain::getFilePaths(), GetGCCLibAndIncVersion(), GetGnuDir(), GetHexagonLibraryPaths(), clang::driver::ToolChain::getProgramPaths(), GetTargetCPU(), and clang::driver::toolchains::Generic_GCC::GCCVersion::Parse().
Definition at line 2204 of file ToolChains.cpp.
void Hexagon_TC::AddClangCXXStdlibIncludeArgs | ( | const llvm::opt::ArgList & | DriverArgs, |
llvm::opt::ArgStringList & | CC1Args | ||
) | const [override, virtual] |
AddClangCXXStdlibIncludeArgs - Add the clang -cc1 level arguments to set the include paths to use for the given C++ standard library type.
Reimplemented from clang::driver::toolchains::Linux.
Definition at line 2231 of file ToolChains.cpp.
References clang::driver::ToolChain::addSystemInclude(), clang::driver::ToolChain::getDriver(), GetGCCLibAndIncVersion(), GetGnuDir(), and clang::driver::Driver::InstalledDir.
void Hexagon_TC::AddClangSystemIncludeArgs | ( | const llvm::opt::ArgList & | DriverArgs, |
llvm::opt::ArgStringList & | CC1Args | ||
) | const [override, virtual] |
Add the clang cc1 arguments for system include paths.
This routine is responsible for adding the necessary cc1 arguments to include headers from standard system header directories.
Reimplemented from clang::driver::toolchains::Linux.
Definition at line 2215 of file ToolChains.cpp.
References clang::driver::ToolChain::addExternCSystemInclude(), clang::driver::ToolChain::getDriver(), GetGCCLibAndIncVersion(), GetGnuDir(), and clang::driver::Driver::InstalledDir.
Tool * Hexagon_TC::buildAssembler | ( | ) | const [override, protected, virtual] |
Reimplemented from clang::driver::toolchains::Linux.
Definition at line 2207 of file ToolChains.cpp.
Tool * Hexagon_TC::buildLinker | ( | ) | const [override, protected, virtual] |
Reimplemented from clang::driver::toolchains::Linux.
Definition at line 2211 of file ToolChains.cpp.
ToolChain::CXXStdlibType Hexagon_TC::GetCXXStdlibType | ( | const llvm::opt::ArgList & | Args | ) | const [override, virtual] |
Reimplemented from clang::driver::ToolChain.
Definition at line 2249 of file ToolChains.cpp.
References clang::driver::ToolChain::CST_Libstdcxx, clang::driver::Driver::Diag(), and clang::driver::ToolChain::getDriver().
StringRef clang::driver::toolchains::Hexagon_TC::GetGCCLibAndIncVersion | ( | ) | const [inline] |
Definition at line 710 of file ToolChains.h.
Referenced by AddClangCXXStdlibIncludeArgs(), AddClangSystemIncludeArgs(), and Hexagon_TC().
std::string Hexagon_TC::GetGnuDir | ( | const std::string & | InstalledDir, |
const llvm::opt::ArgList & | Args | ||
) | [static] |
Hexagon Toolchain.
Definition at line 2094 of file ToolChains.cpp.
References getGCCToolchainDir().
Referenced by AddClangCXXStdlibIncludeArgs(), AddClangSystemIncludeArgs(), clang::driver::tools::hexagon::Link::ConstructJob(), GetHexagonLibraryPaths(), and Hexagon_TC().
StringRef Hexagon_TC::GetTargetCPU | ( | const llvm::opt::ArgList & | Args | ) | [static] |
Definition at line 2286 of file ToolChains.cpp.
References getHexagonVersion().
Referenced by clang::driver::tools::hexagon::Assemble::ConstructJob(), clang::driver::tools::hexagon::Link::ConstructJob(), getCPUName(), and Hexagon_TC().
Definition at line 693 of file ToolChains.h.
Referenced by Hexagon_TC().