clang 23.0.0git
WebAssembly.cpp File Reference
#include "WebAssembly.h"
#include "Gnu.h"
#include "clang/Config/config.h"
#include "clang/Driver/CommonArgs.h"
#include "clang/Driver/Compilation.h"
#include "clang/Driver/Driver.h"
#include "clang/Options/Options.h"
#include "llvm/Config/llvm-config.h"
#include "llvm/Option/ArgList.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/VirtualFileSystem.h"

Go to the source code of this file.

Functions

static std::string GetCXXExceptionsDir (const ArgList &DriverArgs)
 Returns a directory name in which separate objects compile with/without exceptions may lie.
static bool TargetBuildsComponents (const llvm::Triple &TargetTriple)
static bool WantsPthread (const llvm::Triple &Triple, const ArgList &Args)
static void AppendLibDirAndLTODir (ToolChain::path_list &Paths, const Driver &D, const std::string &Dir)
 Append Dir to Paths, but also include the LTO directories before that if LTO is eanbled.

Function Documentation

◆ AppendLibDirAndLTODir()

void AppendLibDirAndLTODir ( ToolChain::path_list & Paths,
const Driver & D,
const std::string & Dir )
static

Append Dir to Paths, but also include the LTO directories before that if LTO is eanbled.

Definition at line 244 of file WebAssembly.cpp.

References clang::driver::Driver::isUsingLTO().

◆ GetCXXExceptionsDir()

std::string GetCXXExceptionsDir ( const ArgList & DriverArgs)
static

Returns a directory name in which separate objects compile with/without exceptions may lie.

This is used both for #include paths as well as lib paths.

Definition at line 40 of file WebAssembly.cpp.

◆ TargetBuildsComponents()

bool TargetBuildsComponents ( const llvm::Triple & TargetTriple)
static

Definition at line 72 of file WebAssembly.cpp.

Referenced by clang::driver::tools::wasm::Linker::ConstructJob().

◆ WantsPthread()

bool WantsPthread ( const llvm::Triple & Triple,
const ArgList & Args )
static

Definition at line 79 of file WebAssembly.cpp.

References WantsPthread().

Referenced by clang::driver::tools::wasm::Linker::ConstructJob(), and WantsPthread().