Index: Object.h =================================================================== --- Object.h +++ Object.h @@ -617,10 +617,6 @@ StringTableSection *SectionNames = nullptr; SymbolTableSection *SymbolTable = nullptr; - explicit Object(std::shared_ptr Data) - : OwnedData(std::move(Data)) {} - virtual ~Object() = default; - void sortSections(); SectionTableRef sections() { return SectionTableRef(Sections); } ConstRange sections() const { Index: Object.cpp =================================================================== --- Object.cpp +++ Object.cpp @@ -835,7 +835,7 @@ } std::unique_ptr ELFReader::create() const { - auto Obj = llvm::make_unique(Data); + auto Obj = llvm::make_unique(); if (auto *o = dyn_cast>(Bin.get())) { ELFBuilder Builder(*o, *Obj); Builder.build();