diff options
-rw-r--r-- | lld/ELF/InputFiles.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp index e07f24d665d..d3c307d5cb6 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<ObjectInfo> { public: uint64_t getSectionLoadAddress(const object::SectionRef &Sec) const override { return static_cast<const ELFSectionRef &>(Sec).getOffset(); } - std::unique_ptr<LoadedObjectInfo> clone() const override { - return std::unique_ptr<LoadedObjectInfo>(); - } }; } |