From 15309044bac8d26214aa8b84aa29e86c440f22bc Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Wed, 5 Jul 2017 15:24:42 +0000 Subject: [PATCH] Use LoadedObjectInfoHelper to simplify/delegate the implementation of 'clone' llvm-svn: 307167 --- lld/ELF/InputFiles.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp index e07f24d665df..d3c307d5cb6b 100644 --- a/lld/ELF/InputFiles.cpp +++ b/lld/ELF/InputFiles.cpp @@ -45,14 +45,11 @@ namespace { // LLVM DWARF parser will not be able to parse .debug_line correctly, unless // we assign each section some unique address. This callback method assigns // each section an address equal to its offset in ELF object file. -class ObjectInfo : public LoadedObjectInfo { +class ObjectInfo : public LoadedObjectInfoHelper { public: uint64_t getSectionLoadAddress(const object::SectionRef &Sec) const override { return static_cast(Sec).getOffset(); } - std::unique_ptr clone() const override { - return std::unique_ptr(); - } }; } -- 2.34.1