llvm-objcopy: Remove unused field. NFCI.
Differential Revision: https://reviews.llvm.org/D59126
llvm-svn: 355892
diff --git a/llvm/tools/llvm-objcopy/ELF/Object.h b/llvm/tools/llvm-objcopy/ELF/Object.h
index dabec85..4675c22 100644
--- a/llvm/tools/llvm-objcopy/ELF/Object.h
+++ b/llvm/tools/llvm-objcopy/ELF/Object.h
@@ -312,10 +312,6 @@
uint32_t Index;
uint64_t OriginalOffset;
Segment *ParentSegment = nullptr;
- ArrayRef<uint8_t> Contents;
-
- explicit Segment(ArrayRef<uint8_t> Data) : Contents(Data) {}
- Segment() {}
const SectionBase *firstSection() const {
if (!Sections.empty())
@@ -827,8 +823,8 @@
Ptr->Index = Sections.size();
return *Ptr;
}
- Segment &addSegment(ArrayRef<uint8_t> Data) {
- Segments.emplace_back(llvm::make_unique<Segment>(Data));
+ Segment &addSegment() {
+ Segments.emplace_back(llvm::make_unique<Segment>());
return *Segments.back();
}
};