[clang] [llvm] [Hexagon] Support -mstack-protector-guard=tls (PR #248788)
Brian Cain via cfe-commits
cfe-commits at lists.llvm.org
Sun Dec 6 08:53:01 PST 2026
================
@@ -3726,13 +3710,14 @@ static void RenderSSPOptions(const Driver &D, const ToolChain &TC,
}
const std::string &TripleStr = EffectiveTriple.getTriple();
+ const bool IsHexagon = EffectiveTriple.getArch() == llvm::Triple::hexagon;
StringRef GuardValue;
if (Arg *A = Args.getLastArg(options::OPT_mstack_protector_guard_EQ)) {
GuardValue = A->getValue();
if (!EffectiveTriple.isX86() && !EffectiveTriple.isAArch64() &&
!EffectiveTriple.isARM() && !EffectiveTriple.isThumb() &&
!EffectiveTriple.isRISCV() && !EffectiveTriple.isPPC() &&
- !EffectiveTriple.isSystemZ())
+ !EffectiveTriple.isSystemZ() && !IsHexagon)
D.Diag(diag::err_drv_unsupported_opt_for_target)
----------------
androm3da wrote:
Seems like Triple should have an `isHexagon()` like the other architectures.
https://github.com/llvm/llvm-project/pull/248788
More information about the cfe-commits
mailing list