forked from OSchip/llvm-project
parent
a4df2da173
commit
1f02ba4843
|
@ -2209,19 +2209,12 @@ void Clang::AddSparcTargetArgs(const ArgList &Args,
|
||||||
|
|
||||||
void Clang::AddSystemZTargetArgs(const ArgList &Args,
|
void Clang::AddSystemZTargetArgs(const ArgList &Args,
|
||||||
ArgStringList &CmdArgs) const {
|
ArgStringList &CmdArgs) const {
|
||||||
if (const Arg *A = Args.getLastArg(clang::driver::options::OPT_mtune_EQ)) {
|
if (const Arg *A = Args.getLastArg(options::OPT_mtune_EQ)) {
|
||||||
StringRef Name = A->getValue();
|
|
||||||
|
|
||||||
std::string TuneCPU;
|
|
||||||
if (Name == "native")
|
|
||||||
TuneCPU = std::string(llvm::sys::getHostCPUName());
|
|
||||||
else
|
|
||||||
TuneCPU = std::string(Name);
|
|
||||||
|
|
||||||
if (!TuneCPU.empty()) {
|
|
||||||
CmdArgs.push_back("-tune-cpu");
|
CmdArgs.push_back("-tune-cpu");
|
||||||
CmdArgs.push_back(Args.MakeArgString(TuneCPU));
|
if (strcmp(A->getValue(), "native") == 0)
|
||||||
}
|
CmdArgs.push_back(Args.MakeArgString(llvm::sys::getHostCPUName()));
|
||||||
|
else
|
||||||
|
CmdArgs.push_back(A->getValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
bool HasBackchain =
|
bool HasBackchain =
|
||||||
|
|
Loading…
Reference in New Issue