[llvm] r360064 - Remove duplicate assignments. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Mon May 6 12:10:55 PDT 2019
Author: rksimon
Date: Mon May 6 12:10:55 2019
New Revision: 360064
URL: http://llvm.org/viewvc/llvm-project?rev=360064&view=rev
Log:
Remove duplicate assignments. NFCI.
Modified:
llvm/trunk/tools/llvm-nm/llvm-nm.cpp
llvm/trunk/tools/obj2yaml/coff2yaml.cpp
Modified: llvm/trunk/tools/llvm-nm/llvm-nm.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-nm/llvm-nm.cpp?rev=360064&r1=360063&r2=360064&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-nm/llvm-nm.cpp (original)
+++ llvm/trunk/tools/llvm-nm/llvm-nm.cpp Mon May 6 12:10:55 2019
@@ -1478,7 +1478,6 @@ dumpSymbolNamesFromObject(SymbolicFile &
B.NType = MachO::N_EXT | MachO::N_UNDF;
B.NSect = 0;
B.NDesc = 0;
- B.NDesc = 0;
MachO::SET_LIBRARY_ORDINAL(B.NDesc, Entry.ordinal());
B.IndirectName = StringRef();
B.Name = Entry.symbolName();
Modified: llvm/trunk/tools/obj2yaml/coff2yaml.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/obj2yaml/coff2yaml.cpp?rev=360064&r1=360063&r2=360064&view=diff
==============================================================================
--- llvm/trunk/tools/obj2yaml/coff2yaml.cpp (original)
+++ llvm/trunk/tools/obj2yaml/coff2yaml.cpp Mon May 6 12:10:55 2019
@@ -58,8 +58,6 @@ template <typename T> void COFFDumper::d
YAMLObj.OptionalHeader = COFFYAML::PEHeader();
YAMLObj.OptionalHeader->Header.AddressOfEntryPoint =
OptionalHeader->AddressOfEntryPoint;
- YAMLObj.OptionalHeader->Header.AddressOfEntryPoint =
- OptionalHeader->AddressOfEntryPoint;
YAMLObj.OptionalHeader->Header.ImageBase = OptionalHeader->ImageBase;
YAMLObj.OptionalHeader->Header.SectionAlignment =
OptionalHeader->SectionAlignment;
More information about the llvm-commits
mailing list