diff options
Diffstat (limited to 'llvm/tools/llvm-objcopy/COFF/Object.h')
-rw-r--r-- | llvm/tools/llvm-objcopy/COFF/Object.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/tools/llvm-objcopy/COFF/Object.h b/llvm/tools/llvm-objcopy/COFF/Object.h index 21475b068629..78f8da00b8cd 100644 --- a/llvm/tools/llvm-objcopy/COFF/Object.h +++ b/llvm/tools/llvm-objcopy/COFF/Object.h @@ -25,11 +25,11 @@ namespace objcopy { namespace coff { struct Relocation { - Relocation() {} + Relocation() = default; Relocation(const object::coff_relocation& R) : Reloc(R) {} object::coff_relocation Reloc; - size_t Target; + size_t Target = 0; StringRef TargetName; // Used for diagnostics only }; @@ -124,7 +124,7 @@ struct Object { ArrayRef<Section> getSections() const { return Sections; } // This allows mutating individual Sections, but not mutating the list - // of symbols itself. + // of sections itself. iterator_range<std::vector<Section>::iterator> getMutableSections() { return make_range(Sections.begin(), Sections.end()); } |