[llvm] f7eba08 - [ObjectYAML][ELF] Fix misspelling in `Elf_Verdaux` var name (NFC)
Antonio Frighetto via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 8 09:47:58 PST 2024
Author: Antonio Frighetto
Date: 2024-11-08T18:44:02+01:00
New Revision: f7eba08497a2a46f2c10737a110f6b778faf1615
URL: https://github.com/llvm/llvm-project/commit/f7eba08497a2a46f2c10737a110f6b778faf1615
DIFF: https://github.com/llvm/llvm-project/commit/f7eba08497a2a46f2c10737a110f6b778faf1615.diff
LOG: [ObjectYAML][ELF] Fix misspelling in `Elf_Verdaux` var name (NFC)
Added:
Modified:
llvm/lib/ObjectYAML/ELFEmitter.cpp
Removed:
################################################################################
diff --git a/llvm/lib/ObjectYAML/ELFEmitter.cpp b/llvm/lib/ObjectYAML/ELFEmitter.cpp
index fc234581a45a70..a449b18143f92b 100644
--- a/llvm/lib/ObjectYAML/ELFEmitter.cpp
+++ b/llvm/lib/ObjectYAML/ELFEmitter.cpp
@@ -1665,13 +1665,13 @@ void ELFState<ELFT>::writeSectionContent(Elf_Shdr &SHeader,
CBA.write((const char *)&VerDef, sizeof(Elf_Verdef));
for (size_t J = 0; J < E.VerNames.size(); ++J, ++AuxCnt) {
- Elf_Verdaux VernAux;
- VernAux.vda_name = DotDynstr.getOffset(E.VerNames[J]);
+ Elf_Verdaux VerdAux;
+ VerdAux.vda_name = DotDynstr.getOffset(E.VerNames[J]);
if (J == E.VerNames.size() - 1)
- VernAux.vda_next = 0;
+ VerdAux.vda_next = 0;
else
- VernAux.vda_next = sizeof(Elf_Verdaux);
- CBA.write((const char *)&VernAux, sizeof(Elf_Verdaux));
+ VerdAux.vda_next = sizeof(Elf_Verdaux);
+ CBA.write((const char *)&VerdAux, sizeof(Elf_Verdaux));
}
}
More information about the llvm-commits
mailing list