forked from OSchip/llvm-project
[mips] Replace Triple::Environment check by the isGNUEnvironment() call. NFC
llvm-svn: 312701
This commit is contained in:
parent
48b35d9a14
commit
cfad9d5f0f
|
@ -35,7 +35,7 @@ void mips::getMipsCPUAndABI(const ArgList &Args, const llvm::Triple &Triple,
|
||||||
// MIPS32r6 is the default for mips(el)?-img-linux-gnu and MIPS64r6 is the
|
// MIPS32r6 is the default for mips(el)?-img-linux-gnu and MIPS64r6 is the
|
||||||
// default for mips64(el)?-img-linux-gnu.
|
// default for mips64(el)?-img-linux-gnu.
|
||||||
if (Triple.getVendor() == llvm::Triple::ImaginationTechnologies &&
|
if (Triple.getVendor() == llvm::Triple::ImaginationTechnologies &&
|
||||||
Triple.getEnvironment() == llvm::Triple::GNU) {
|
Triple.isGNUEnvironment()) {
|
||||||
DefMips32CPU = "mips32r6";
|
DefMips32CPU = "mips32r6";
|
||||||
DefMips64CPU = "mips64r6";
|
DefMips64CPU = "mips64r6";
|
||||||
}
|
}
|
||||||
|
|
|
@ -1311,12 +1311,12 @@ bool clang::driver::findMIPSMultilibs(const Driver &D,
|
||||||
|
|
||||||
if (TargetTriple.getVendor() == llvm::Triple::MipsTechnologies &&
|
if (TargetTriple.getVendor() == llvm::Triple::MipsTechnologies &&
|
||||||
TargetTriple.getOS() == llvm::Triple::Linux &&
|
TargetTriple.getOS() == llvm::Triple::Linux &&
|
||||||
TargetTriple.getEnvironment() == llvm::Triple::GNU)
|
TargetTriple.isGNUEnvironment())
|
||||||
return findMipsMtiMultilibs(Flags, NonExistent, Result);
|
return findMipsMtiMultilibs(Flags, NonExistent, Result);
|
||||||
|
|
||||||
if (TargetTriple.getVendor() == llvm::Triple::ImaginationTechnologies &&
|
if (TargetTriple.getVendor() == llvm::Triple::ImaginationTechnologies &&
|
||||||
TargetTriple.getOS() == llvm::Triple::Linux &&
|
TargetTriple.getOS() == llvm::Triple::Linux &&
|
||||||
TargetTriple.getEnvironment() == llvm::Triple::GNU)
|
TargetTriple.isGNUEnvironment())
|
||||||
return findMipsImgMultilibs(Flags, NonExistent, Result);
|
return findMipsImgMultilibs(Flags, NonExistent, Result);
|
||||||
|
|
||||||
if (findMipsCsMultilibs(Flags, NonExistent, Result))
|
if (findMipsCsMultilibs(Flags, NonExistent, Result))
|
||||||
|
|
Loading…
Reference in New Issue