forked from OSchip/llvm-project
[X86][Driver] Remove code that forced a core2 mtune from MachO::TranslateArgs.
mtune was previously ignored by the compiler so I'm not sure this did anything. But after D85384 we're starting to support mtune and this code is now causing a couple test failures on MacOS.
This commit is contained in:
parent
21e4b9b204
commit
b32f203edc
|
@ -2271,11 +2271,6 @@ DerivedArgList *MachO::TranslateArgs(const DerivedArgList &Args,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (getTriple().isX86())
|
|
||||||
if (!Args.hasArgNoClaim(options::OPT_mtune_EQ))
|
|
||||||
DAL->AddJoinedArg(nullptr, Opts.getOption(options::OPT_mtune_EQ),
|
|
||||||
"core2");
|
|
||||||
|
|
||||||
// Add the arch options based on the particular spelling of -arch, to match
|
// Add the arch options based on the particular spelling of -arch, to match
|
||||||
// how the driver driver works.
|
// how the driver driver works.
|
||||||
if (!BoundArch.empty()) {
|
if (!BoundArch.empty()) {
|
||||||
|
|
Loading…
Reference in New Issue