From 9ba844eb3a21d461c3adc7add7691a076c6992fc Mon Sep 17 00:00:00 2001 From: Walter Erquinigo Date: Fri, 19 Sep 2025 14:14:20 -0400 Subject: [ELF][LLDB] Add an nvsass triple (#159459) When handling CUDA ELF files via objdump or LLDB, the ELF parser in LLVM needs to distinguish if an ELF file is sass or not, which requires a triple for sass to exist in llvm. This patch includes all the necessary changes for LLDB and objdump to correctly identify these files with the correct triple. --- llvm/lib/Object/ObjectFile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Object/ObjectFile.cpp') diff --git a/llvm/lib/Object/ObjectFile.cpp b/llvm/lib/Object/ObjectFile.cpp index b0e4ea0..7fad21b 100644 --- a/llvm/lib/Object/ObjectFile.cpp +++ b/llvm/lib/Object/ObjectFile.cpp @@ -139,7 +139,7 @@ Triple ObjectFile::makeTriple() const { TheTriple.setObjectFormat(Triple::GOFF); } else if (TheTriple.isAMDGPU()) { TheTriple.setVendor(Triple::AMD); - } else if (TheTriple.isNVPTX()) { + } else if (TheTriple.isNVPTX() || TheTriple.isNVSASS()) { TheTriple.setVendor(Triple::NVIDIA); } -- cgit v1.1