clang  7.0.0svn
Public Member Functions | List of all members
clang::driver::tools::wasm::Linker Class Reference

#include "/opt/doxygen-docs/src/llvm/tools/clang/lib/Driver/ToolChains/WebAssembly.h"

Inheritance diagram for clang::driver::tools::wasm::Linker:
Inheritance graph
Collaboration diagram for clang::driver::tools::wasm::Linker:
Collaboration graph

Public Member Functions

 Linker (const ToolChain &TC)
bool isLinkJob () const override
bool hasIntegratedCPP () const override
void ConstructJob (Compilation &C, const JobAction &JA, const InputInfo &Output, const InputInfoList &Inputs, const llvm::opt::ArgList &TCArgs, const char *LinkingOutput) const override
 ConstructJob - Construct jobs to perform the action JA, writing to Output and with Inputs, and add the jobs to C. More...
- Public Member Functions inherited from clang::driver::tools::GnuTool
 GnuTool (const char *Name, const char *ShortName, const ToolChain &TC)
- Public Member Functions inherited from clang::driver::Tool
 Tool (const char *Name, const char *ShortName, const ToolChain &TC, ResponseFileSupport ResponseSupport=RF_None, llvm::sys::WindowsEncodingMethod ResponseEncoding=llvm::sys::WEM_UTF8, const char *ResponseFlag="@")
virtual ~Tool ()
const char * getName () const
const char * getShortName () const
const ToolChaingetToolChain () const
virtual bool hasIntegratedAssembler () const
virtual bool canEmitIR () const
virtual bool isDsymutilJob () const
ResponseFileSupport getResponseFilesSupport () const
 Returns the level of support for response files of this tool, whether it accepts arguments to be passed via a file on disk. More...
llvm::sys::WindowsEncodingMethod getResponseFileEncoding () const
 Returns which encoding the response file should use. More...
const char * getResponseFileFlag () const
 Returns which prefix to use when passing the name of a response file as a parameter to this tool. More...
virtual bool hasGoodDiagnostics () const
 Does this tool have "good" standardized diagnostics, or should the driver add an additional "command failed" diagnostic on failures. More...
virtual void ConstructJobMultipleOutputs (Compilation &C, const JobAction &JA, const InputInfoList &Outputs, const InputInfoList &Inputs, const llvm::opt::ArgList &TCArgs, const char *LinkingOutput) const
 Construct jobs to perform the action JA, writing to the Outputs and with Inputs, and add the jobs to C. More...

Additional Inherited Members

- Public Types inherited from clang::driver::Tool
enum  ResponseFileSupport { RF_Full, RF_FileList, RF_None }

Detailed Description

Definition at line 22 of file WebAssembly.h.

Constructor & Destructor Documentation

◆ Linker()

wasm::Linker::Linker ( const ToolChain TC)

Definition at line 24 of file WebAssembly.cpp.

Member Function Documentation

◆ ConstructJob()

void wasm::Linker::ConstructJob ( Compilation C,
const JobAction JA,
const InputInfo Output,
const InputInfoList Inputs,
const llvm::opt::ArgList &  TCArgs,
const char *  LinkingOutput 
) const

ConstructJob - Construct jobs to perform the action JA, writing to Output and with Inputs, and add the jobs to C.

TCArgs- The argument list for this toolchain, with any tool chain specific translations applied.
LinkingOutput- If this output will eventually feed the linker, then this is the final output name of the linked image.

Implements clang::driver::Tool.

Definition at line 35 of file WebAssembly.cpp.

References clang::driver::Compilation::addCommand(), clang::driver::ToolChain::AddCXXStdlibLibArgs(), clang::driver::ToolChain::AddFilePathLibArgs(), clang::driver::tools::AddLinkerInputs(), clang::driver::tools::AddRunTimeLibs(), clang::driver::ToolChain::CST_Libcxx, clang::driver::ToolChain::CST_Libstdcxx, clang::driver::ToolChain::getDriver(), clang::driver::InputInfo::getFilename(), clang::driver::ToolChain::GetFilePath(), clang::driver::ToolChain::GetLinkerPath(), clang::driver::Tool::getToolChain(), clang::driver::ToolChain::RLT_CompilerRT, and clang::driver::ToolChain::ShouldLinkCXXStdlib().

◆ hasIntegratedCPP()

bool wasm::Linker::hasIntegratedCPP ( ) const

Implements clang::driver::Tool.

Definition at line 31 of file WebAssembly.cpp.

◆ isLinkJob()

bool wasm::Linker::isLinkJob ( ) const

Reimplemented from clang::driver::Tool.

Definition at line 27 of file WebAssembly.cpp.

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