clang
10.0.0git
|
Use the CC1 tool callback when available, to avoid creating a new process. More...
#include "clang/Driver/Job.h"
Public Member Functions | |
CC1Command (const Action &Source, const Tool &Creator, const char *Executable, const llvm::opt::ArgStringList &Arguments, ArrayRef< InputInfo > Inputs) | |
void | Print (llvm::raw_ostream &OS, const char *Terminator, bool Quote, CrashReportInfo *CrashInfo=nullptr) const override |
int | Execute (ArrayRef< Optional< StringRef >> Redirects, std::string *ErrMsg, bool *ExecutionFailed) const override |
void | setEnvironment (llvm::ArrayRef< const char *> NewEnvironment) override |
Sets the environment to be used by the new process. More... | |
![]() | |
Command (const Action &Source, const Tool &Creator, const char *Executable, const llvm::opt::ArgStringList &Arguments, ArrayRef< InputInfo > Inputs) | |
Command (const Command &)=default | |
virtual | ~Command ()=default |
const Action & | getSource () const |
getSource - Return the Action which caused the creation of this job. More... | |
const Tool & | getCreator () const |
getCreator - Return the Tool which caused the creation of this job. More... | |
void | setResponseFile (const char *FileName) |
Set to pass arguments via a response file when launching the command. More... | |
void | setInputFileList (llvm::opt::ArgStringList List) |
Set an input file list, necessary if we need to use a response file but the tool being called only supports input files lists. More... | |
const char * | getExecutable () const |
const llvm::opt::ArgStringList & | getArguments () const |
Additional Inherited Members | |
![]() | |
static void | printArg (llvm::raw_ostream &OS, StringRef Arg, bool Quote) |
Print a command argument, and optionally quote it. More... | |
![]() | |
bool | PrintInputFilenames = false |
Whether to print the input filenames when executing. More... | |
bool | InProcess = false |
Whether the command will be executed in this process or not. More... | |
![]() | |
void | PrintFileNames () const |
Optionally print the filenames to be compiled. More... | |
Use the CC1 tool callback when available, to avoid creating a new process.
CC1Command::CC1Command | ( | const Action & | Source, |
const Tool & | Creator, | ||
const char * | Executable, | ||
const llvm::opt::ArgStringList & | Arguments, | ||
ArrayRef< InputInfo > | Inputs | ||
) |
Definition at line 374 of file Job.cpp.
References clang::driver::Command::InProcess.
|
overridevirtual |
Reimplemented from clang::driver::Command.
Definition at line 389 of file Job.cpp.
References clang::driver::Command::Execute(), clang::driver::Command::getArguments(), clang::driver::Command::getCreator(), clang::driver::ToolChain::getDriver(), clang::driver::Command::getExecutable(), clang::driver::Tool::getToolChain(), clang::driver::Command::InProcess, and clang::driver::Command::PrintFileNames().
|
overridevirtual |
Reimplemented from clang::driver::Command.
Definition at line 382 of file Job.cpp.
References clang::driver::Command::InProcess, and clang::driver::Command::Print().
|
overridevirtual |
Sets the environment to be used by the new process.
NewEnvironment | An array of environment variables. |
Reimplemented from clang::driver::Command.