Changeset View
Changeset View
Standalone View
Standalone View
contrib/llvm/tools/clang/lib/Driver/ToolChains/Arch/PPC.cpp
Show First 20 Lines • Show All 110 Lines • ▼ Show 20 Lines | void ppc::getPPCTargetFeatures(const Driver &D, const llvm::Triple &Triple, | ||||
if (ReadGOT == ppc::ReadGOTPtrMode::SecurePlt) | if (ReadGOT == ppc::ReadGOTPtrMode::SecurePlt) | ||||
Features.push_back("+secure-plt"); | Features.push_back("+secure-plt"); | ||||
} | } | ||||
ppc::ReadGOTPtrMode ppc::getPPCReadGOTPtrMode(const Driver &D, const llvm::Triple &Triple, | ppc::ReadGOTPtrMode ppc::getPPCReadGOTPtrMode(const Driver &D, const llvm::Triple &Triple, | ||||
const ArgList &Args) { | const ArgList &Args) { | ||||
if (Args.getLastArg(options::OPT_msecure_plt)) | if (Args.getLastArg(options::OPT_msecure_plt)) | ||||
return ppc::ReadGOTPtrMode::SecurePlt; | return ppc::ReadGOTPtrMode::SecurePlt; | ||||
if (Triple.isOSOpenBSD()) | if (Triple.isOSOpenBSD() || | ||||
(Triple.isOSFreeBSD() && Triple.getOSMajorVersion() >= 13)) | |||||
return ppc::ReadGOTPtrMode::SecurePlt; | return ppc::ReadGOTPtrMode::SecurePlt; | ||||
else | else | ||||
return ppc::ReadGOTPtrMode::Bss; | return ppc::ReadGOTPtrMode::Bss; | ||||
} | } | ||||
ppc::FloatABI ppc::getPPCFloatABI(const Driver &D, const ArgList &Args) { | ppc::FloatABI ppc::getPPCFloatABI(const Driver &D, const ArgList &Args) { | ||||
ppc::FloatABI ABI = ppc::FloatABI::Invalid; | ppc::FloatABI ABI = ppc::FloatABI::Invalid; | ||||
if (Arg *A = | if (Arg *A = | ||||
Show All 30 Lines |