clang  6.0.0svn
Functions
CommonArgs.cpp File Reference
#include "CommonArgs.h"
#include "InputInfo.h"
#include "Hexagon.h"
#include "Arch/AArch64.h"
#include "Arch/ARM.h"
#include "Arch/Mips.h"
#include "Arch/PPC.h"
#include "Arch/SystemZ.h"
#include "Arch/X86.h"
#include "clang/Basic/CharInfo.h"
#include "clang/Basic/LangOptions.h"
#include "clang/Basic/ObjCRuntime.h"
#include "clang/Basic/Version.h"
#include "clang/Basic/VirtualFileSystem.h"
#include "clang/Config/config.h"
#include "clang/Driver/Action.h"
#include "clang/Driver/Compilation.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/ToolChain.h"
#include "clang/Driver/Util.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/StringSwitch.h"
#include "llvm/ADT/Twine.h"
#include "llvm/Option/Arg.h"
#include "llvm/Option/ArgList.h"
#include "llvm/Option/Option.h"
#include "llvm/Support/CodeGen.h"
#include "llvm/Support/Compression.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/Host.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/Process.h"
#include "llvm/Support/Program.h"
#include "llvm/Support/ScopedPrinter.h"
#include "llvm/Support/TargetParser.h"
#include "llvm/Support/YAMLParser.h"
Include dependency graph for CommonArgs.cpp:

Go to the source code of this file.

Functions

static std::string getR600TargetGPU (const ArgList &Args)
 Get the (LLVM) name of the R600 gpu we are targeting. More...
 
static std::string getNios2TargetCPU (const ArgList &Args)
 
static std::string getLanaiTargetCPU (const ArgList &Args)
 
static StringRef getWebAssemblyTargetCPU (const ArgList &Args)
 Get the (LLVM) name of the WebAssembly cpu we are targeting. More...
 
static void addSanitizerRuntime (const ToolChain &TC, const ArgList &Args, ArgStringList &CmdArgs, StringRef Sanitizer, bool IsShared, bool IsWhole)
 
static bool addSanitizerDynamicList (const ToolChain &TC, const ArgList &Args, ArgStringList &CmdArgs, StringRef Sanitizer)
 
static void collectSanitizerRuntimes (const ToolChain &TC, const ArgList &Args, SmallVectorImpl< StringRef > &SharedRuntimes, SmallVectorImpl< StringRef > &StaticRuntimes, SmallVectorImpl< StringRef > &NonWholeStaticRuntimes, SmallVectorImpl< StringRef > &HelperStaticRuntimes, SmallVectorImpl< StringRef > &RequiredSymbols)
 
static void AddLibgcc (const llvm::Triple &Triple, const Driver &D, ArgStringList &CmdArgs, const ArgList &Args)
 

Function Documentation

◆ AddLibgcc()

static void AddLibgcc ( const llvm::Triple &  Triple,
const Driver D,
ArgStringList &  CmdArgs,
const ArgList &  Args 
)
static

◆ addSanitizerDynamicList()

static bool addSanitizerDynamicList ( const ToolChain TC,
const ArgList &  Args,
ArgStringList &  CmdArgs,
StringRef  Sanitizer 
)
static

◆ addSanitizerRuntime()

static void addSanitizerRuntime ( const ToolChain TC,
const ArgList &  Args,
ArgStringList &  CmdArgs,
StringRef  Sanitizer,
bool  IsShared,
bool  IsWhole 
)
static

◆ collectSanitizerRuntimes()

static void collectSanitizerRuntimes ( const ToolChain TC,
const ArgList &  Args,
SmallVectorImpl< StringRef > &  SharedRuntimes,
SmallVectorImpl< StringRef > &  StaticRuntimes,
SmallVectorImpl< StringRef > &  NonWholeStaticRuntimes,
SmallVectorImpl< StringRef > &  HelperStaticRuntimes,
SmallVectorImpl< StringRef > &  RequiredSymbols 
)
static

◆ getLanaiTargetCPU()

static std::string getLanaiTargetCPU ( const ArgList &  Args)
static

Definition at line 233 of file CommonArgs.cpp.

Referenced by getWebAssemblyTargetCPU().

◆ getNios2TargetCPU()

static std::string getNios2TargetCPU ( const ArgList &  Args)
static

Definition at line 218 of file CommonArgs.cpp.

Referenced by getWebAssemblyTargetCPU().

◆ getR600TargetGPU()

static std::string getR600TargetGPU ( const ArgList &  Args)
static

Get the (LLVM) name of the R600 gpu we are targeting.

Definition at line 202 of file CommonArgs.cpp.

Referenced by getWebAssemblyTargetCPU().

◆ getWebAssemblyTargetCPU()

static StringRef getWebAssemblyTargetCPU ( const ArgList &  Args)
static