Please use GitHub pull requests for new patches. Avoid migrating existing patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
clang/lib/Driver/ToolChains/Flang.cpp
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
void Flang::addOtherOptions(const ArgList &Args, ArgStringList &CmdArgs) const { | void Flang::addOtherOptions(const ArgList &Args, ArgStringList &CmdArgs) const { | ||||
Args.AddAllArgs(CmdArgs, | Args.AddAllArgs(CmdArgs, | ||||
{options::OPT_module_dir, options::OPT_fdebug_module_writer, | {options::OPT_module_dir, options::OPT_fdebug_module_writer, | ||||
options::OPT_fintrinsic_modules_path, options::OPT_pedantic, | options::OPT_fintrinsic_modules_path, options::OPT_pedantic, | ||||
options::OPT_std_EQ, options::OPT_W_Joined, | options::OPT_std_EQ, options::OPT_W_Joined, | ||||
options::OPT_fconvert_EQ, options::OPT_fpass_plugin_EQ}); | options::OPT_fconvert_EQ, options::OPT_fpass_plugin_EQ}); | ||||
Arg *stackArrays = | |||||
Args.getLastArg(options::OPT_Ofast, options::OPT_fstack_arrays, | |||||
options::OPT_fno_stack_arrays); | |||||
if (stackArrays && | |||||
!stackArrays->getOption().matches(options::OPT_fno_stack_arrays)) | |||||
CmdArgs.push_back("-fstack-arrays"); | |||||
} | } | ||||
void Flang::addPicOptions(const ArgList &Args, ArgStringList &CmdArgs) const { | void Flang::addPicOptions(const ArgList &Args, ArgStringList &CmdArgs) const { | ||||
// ParsePICArgs parses -fPIC/-fPIE and their variants and returns a tuple of | // ParsePICArgs parses -fPIC/-fPIE and their variants and returns a tuple of | ||||
// (RelocationModel, PICLevel, IsPIE). | // (RelocationModel, PICLevel, IsPIE). | ||||
llvm::Reloc::Model RelocationModel; | llvm::Reloc::Model RelocationModel; | ||||
unsigned PICLevel; | unsigned PICLevel; | ||||
bool IsPIE; | bool IsPIE; | ||||
▲ Show 20 Lines • Show All 292 Lines • Show Last 20 Lines |