clang 10.0.0git

Functions
ToolChain.cpp File Reference
`#include "clang/Driver/ToolChain.h"`
`#include "InputInfo.h"`
`#include "ToolChains/Arch/ARM.h"`
`#include "ToolChains/Clang.h"`
`#include "ToolChains/InterfaceStubs.h"`
`#include "ToolChains/Flang.h"`
`#include "clang/Basic/ObjCRuntime.h"`
`#include "clang/Basic/Sanitizers.h"`
`#include "clang/Config/config.h"`
`#include "clang/Driver/Action.h"`
`#include "clang/Driver/Driver.h"`
`#include "clang/Driver/DriverDiagnostic.h"`
`#include "clang/Driver/Job.h"`
`#include "clang/Driver/Options.h"`
`#include "clang/Driver/SanitizerArgs.h"`
`#include "clang/Driver/XRayArgs.h"`
`#include "llvm/ADT/STLExtras.h"`
`#include "llvm/ADT/SmallString.h"`
`#include "llvm/ADT/StringRef.h"`
`#include "llvm/ADT/Triple.h"`
`#include "llvm/ADT/Twine.h"`
`#include "llvm/Config/llvm-config.h"`
`#include "llvm/MC/MCTargetOptions.h"`
`#include "llvm/Option/Arg.h"`
`#include "llvm/Option/ArgList.h"`
`#include "llvm/Option/OptTable.h"`
`#include "llvm/Option/Option.h"`
`#include "llvm/Support/ErrorHandling.h"`
`#include "llvm/Support/FileSystem.h"`
`#include "llvm/Support/Path.h"`
`#include "llvm/Support/TargetParser.h"`
`#include "llvm/Support/TargetRegistry.h"`
`#include "llvm/Support/VersionTuple.h"`
`#include "llvm/Support/VirtualFileSystem.h"`
`#include <cassert>`
`#include <cstddef>`
`#include <cstring>`
`#include <string>`
Include dependency graph for ToolChain.cpp:

Go to the source code of this file.

## Functions
static llvm::opt::Arg * | GetRTTIArgument (const ArgList &Args)
static ToolChain::RTTIMode | CalculateRTTIMode (const ArgList &Args, const llvm::Triple &Triple, const Arg *CachedRTTIArg)
static const DriverSuffix * | FindDriverSuffix (StringRef ProgName, size_t &Pos)
static std::string | normalizeProgramName (llvm::StringRef Argv0)
| Normalize the program name from argv[0] by stripping the file extension if present and lower-casing the string on Windows. More...
static const DriverSuffix * | parseDriverSuffix (StringRef ProgName, size_t &Pos)
static StringRef | getArchNameForCompilerRTLib (const ToolChain &TC, const ArgList &Args)
static VersionTuple | separateMSVCFullVersion (unsigned Version)

## Function Documentation

## ◆ CalculateRTTIMode()

static ToolChain::RTTIMode CalculateRTTIMode | ( | const ArgList & | Args,
|  | const llvm::Triple & | Triple,
|  | const Arg * | CachedRTTIArg
| ) |  |
| static

Definition at line 59 of file ToolChain.cpp.

References clang::driver::ToolChain::RM_Disabled, and clang::driver::ToolChain::RM_Enabled.

## ◆ FindDriverSuffix()

static const DriverSuffix* FindDriverSuffix | ( | StringRef | ProgName,
|  | size_t & | Pos
| ) |  |
| static

Definition at line 138 of file ToolChain.cpp.

Referenced by parseDriverSuffix().

## ◆ getArchNameForCompilerRTLib()

static StringRef getArchNameForCompilerRTLib | ( | const ToolChain & | TC,
|  | const ArgList & | Args
| ) |  |
| static

Definition at line 349 of file ToolChain.cpp.

References clang::driver::ToolChain::getArch(), clang::driver::tools::arm::getARMFloatABI(), and clang::driver::ToolChain::getTriple().

Referenced by clang::driver::ToolChain::getCompilerRT().

## ◆ GetRTTIArgument()

static llvm::opt::Arg* GetRTTIArgument | ( | const ArgList & | Args | ) |
| static

Definition at line 54 of file ToolChain.cpp.

## ◆ normalizeProgramName()

static std::string normalizeProgramName | ( | llvm::StringRef | Argv0 | ) |
| static

Normalize the program name from argv[0] by stripping the file extension if present and lower-casing the string on Windows.

Definition at line 170 of file ToolChain.cpp.

Referenced by clang::driver::ToolChain::getTargetAndModeFromProgramName().

## ◆ parseDriverSuffix()

static const DriverSuffix* parseDriverSuffix | ( | StringRef | ProgName,
|  | size_t & | Pos
| ) |  |
| static

Definition at line 179 of file ToolChain.cpp.

References FindDriverSuffix().

Referenced by clang::driver::ToolChain::getTargetAndModeFromProgramName().

## ◆ separateMSVCFullVersion()

static VersionTuple separateMSVCFullVersion | ( | unsigned | Version | ) |
| static

Definition at line 976 of file ToolChain.cpp.

Referenced by clang::driver::ToolChain::computeMSVCVersion().