Changeset View
Changeset View
Standalone View
Standalone View
clang/lib/Driver/ToolChains/Clang.cpp
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
Show First 20 Lines • Show All 8,295 Lines • ▼ Show 20 Lines | void OffloadBundler::ConstructJobMultipleOutputs( | ||||
// All the inputs are encoded as commands. | // All the inputs are encoded as commands. | ||||
C.addCommand(std::make_unique<Command>( | C.addCommand(std::make_unique<Command>( | ||||
JA, *this, ResponseFileSupport::None(), | JA, *this, ResponseFileSupport::None(), | ||||
TCArgs.MakeArgString(getToolChain().GetProgramPath(getShortName())), | TCArgs.MakeArgString(getToolChain().GetProgramPath(getShortName())), | ||||
CmdArgs, None, Outputs)); | CmdArgs, None, Outputs)); | ||||
} | } | ||||
void OffloadWrapper::ConstructJob(Compilation &C, const JobAction &JA, | |||||
const InputInfo &Output, | |||||
const InputInfoList &Inputs, | |||||
const ArgList &Args, | |||||
const char *LinkingOutput) const { | |||||
ArgStringList CmdArgs; | |||||
const llvm::Triple &Triple = getToolChain().getEffectiveTriple(); | |||||
// Add the "effective" target triple. | |||||
CmdArgs.push_back("-target"); | |||||
CmdArgs.push_back(Args.MakeArgString(Triple.getTriple())); | |||||
// Add the output file name. | |||||
assert(Output.isFilename() && "Invalid output."); | |||||
CmdArgs.push_back("-o"); | |||||
CmdArgs.push_back(Output.getFilename()); | |||||
// Add inputs. | |||||
for (const InputInfo &I : Inputs) { | |||||
assert(I.isFilename() && "Invalid input."); | |||||
CmdArgs.push_back(I.getFilename()); | |||||
} | |||||
C.addCommand(std::make_unique<Command>( | |||||
JA, *this, ResponseFileSupport::None(), | |||||
Args.MakeArgString(getToolChain().GetProgramPath(getShortName())), | |||||
CmdArgs, Inputs, Output)); | |||||
} | |||||
void OffloadPackager::ConstructJob(Compilation &C, const JobAction &JA, | void OffloadPackager::ConstructJob(Compilation &C, const JobAction &JA, | ||||
const InputInfo &Output, | const InputInfo &Output, | ||||
const InputInfoList &Inputs, | const InputInfoList &Inputs, | ||||
const llvm::opt::ArgList &Args, | const llvm::opt::ArgList &Args, | ||||
const char *LinkingOutput) const { | const char *LinkingOutput) const { | ||||
ArgStringList CmdArgs; | ArgStringList CmdArgs; | ||||
// Add the output file name. | // Add the output file name. | ||||
▲ Show 20 Lines • Show All 180 Lines • Show Last 20 Lines |