forked from OSchip/llvm-project
Fix and update comments and a small reformatting.
llvm-svn: 232997
This commit is contained in:
parent
e5423a766b
commit
c54920a123
|
@ -1563,8 +1563,7 @@ static void AddGoldPlugin(const ToolChain &ToolChain, const ArgList &Args,
|
||||||
CmdArgs.push_back(Args.MakeArgString(Twine("-plugin-opt=mcpu=") + CPU));
|
CmdArgs.push_back(Args.MakeArgString(Twine("-plugin-opt=mcpu=") + CPU));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void getX86TargetFeatures(const Driver & D,
|
static void getX86TargetFeatures(const Driver &D, const llvm::Triple &Triple,
|
||||||
const llvm::Triple &Triple,
|
|
||||||
const ArgList &Args,
|
const ArgList &Args,
|
||||||
std::vector<const char *> &Features) {
|
std::vector<const char *> &Features) {
|
||||||
if (Triple.getArchName() == "x86_64h") {
|
if (Triple.getArchName() == "x86_64h") {
|
||||||
|
@ -1578,7 +1577,7 @@ static void getX86TargetFeatures(const Driver & D,
|
||||||
Features.push_back("-fsgsbase");
|
Features.push_back("-fsgsbase");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add features to comply with gcc on Android
|
// Add features to be compatible with gcc for Android.
|
||||||
if (Triple.getEnvironment() == llvm::Triple::Android) {
|
if (Triple.getEnvironment() == llvm::Triple::Android) {
|
||||||
if (Triple.getArch() == llvm::Triple::x86_64) {
|
if (Triple.getArch() == llvm::Triple::x86_64) {
|
||||||
Features.push_back("+sse4.2");
|
Features.push_back("+sse4.2");
|
||||||
|
@ -1587,7 +1586,7 @@ static void getX86TargetFeatures(const Driver & D,
|
||||||
Features.push_back("+ssse3");
|
Features.push_back("+ssse3");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set features according to the -arch flag on MSVC
|
// Set features according to the -arch flag on MSVC.
|
||||||
if (Arg *A = Args.getLastArg(options::OPT__SLASH_arch)) {
|
if (Arg *A = Args.getLastArg(options::OPT__SLASH_arch)) {
|
||||||
StringRef Arch = A->getValue();
|
StringRef Arch = A->getValue();
|
||||||
bool ArchUsed = false;
|
bool ArchUsed = false;
|
||||||
|
|
Loading…
Reference in New Issue