llvm.org GIT mirror llvm / 6abfdc6
[llvm-objcopy] [COFF] Fix warnings abuilt missing field initialization. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@350898 91177308-0d34-0410-b5e6-96231b3b80d8 Martin Storsjo 7 months ago
2 changed file(s) with 4 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
2424 namespace coff {
2525
2626 struct Relocation {
27 Relocation() {}
28 Relocation(const object::coff_relocation& R) : Reloc(R) {}
29
2730 object::coff_relocation Reloc;
2831 size_t Target;
2932 StringRef TargetName; // Used for diagnostics only
7272 return errorCodeToError(EC);
7373 ArrayRef Relocs = COFFObj.getRelocations(Sec);
7474 for (const coff_relocation &R : Relocs)
75 S.Relocs.push_back(Relocation{R});
75 S.Relocs.push_back(R);
7676 if (auto EC = COFFObj.getSectionName(Sec, S.Name))
7777 return errorCodeToError(EC);
7878 if (Sec->hasExtendedRelocations())