aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/ObjectFile.cpp
diff options
context:
space:
mode:
authorWalter Erquinigo <werquinigo@nvidia.com>2025-09-19 14:14:20 -0400
committerGitHub <noreply@github.com>2025-09-19 14:14:20 -0400
commit9ba844eb3a21d461c3adc7add7691a076c6992fc (patch)
tree9c1d763aba5970a732a8f90a9b363cb1c61fd962 /llvm/lib/Object/ObjectFile.cpp
parentfc73ef42c92bf50547d5a069e98459a4a5615872 (diff)
downloadllvm-9ba844eb3a21d461c3adc7add7691a076c6992fc.zip
llvm-9ba844eb3a21d461c3adc7add7691a076c6992fc.tar.gz
llvm-9ba844eb3a21d461c3adc7add7691a076c6992fc.tar.bz2
[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.
Diffstat (limited to 'llvm/lib/Object/ObjectFile.cpp')
-rw-r--r--llvm/lib/Object/ObjectFile.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}