[llvm] b5ef33b - [llvm-objdump] Delete unused variables after #128434
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 18 23:49:00 PDT 2025
Author: Fangrui Song
Date: 2025-03-18T23:48:55-07:00
New Revision: b5ef33b3b9771c169760bcfa3a72c37b794a4a4c
URL: https://github.com/llvm/llvm-project/commit/b5ef33b3b9771c169760bcfa3a72c37b794a4a4c
DIFF: https://github.com/llvm/llvm-project/commit/b5ef33b3b9771c169760bcfa3a72c37b794a4a4c.diff
LOG: [llvm-objdump] Delete unused variables after #128434
Added:
Modified:
llvm/tools/llvm-objdump/ELFDump.cpp
Removed:
################################################################################
diff --git a/llvm/tools/llvm-objdump/ELFDump.cpp b/llvm/tools/llvm-objdump/ELFDump.cpp
index 3b288ea73398b..2503008929f98 100644
--- a/llvm/tools/llvm-objdump/ELFDump.cpp
+++ b/llvm/tools/llvm-objdump/ELFDump.cpp
@@ -405,12 +405,6 @@ template <class ELFT> void ELFDumper<ELFT>::printSymbolVersion() {
Shdr.sh_type != ELF::SHT_GNU_verdef)
continue;
- ArrayRef<uint8_t> Contents =
- unwrapOrError(Elf.getSectionContents(Shdr), FileName);
- const typename ELFT::Shdr *StrTabSec =
- unwrapOrError(Elf.getSection(Shdr.sh_link), FileName);
- StringRef StrTab = unwrapOrError(Elf.getStringTable(*StrTabSec), FileName);
-
if (Shdr.sh_type == ELF::SHT_GNU_verneed) {
printSymbolVersionDependency(Shdr);
} else {
More information about the llvm-commits
mailing list