[lld] r307167 - Use LoadedObjectInfoHelper to simplify/delegate the implementation of 'clone'
David Blaikie via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 5 08:24:42 PDT 2017
Author: dblaikie
Date: Wed Jul 5 08:24:42 2017
New Revision: 307167
URL: http://llvm.org/viewvc/llvm-project?rev=307167&view=rev
Log:
Use LoadedObjectInfoHelper to simplify/delegate the implementation of 'clone'
Modified:
lld/trunk/ELF/InputFiles.cpp
Modified: lld/trunk/ELF/InputFiles.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/InputFiles.cpp?rev=307167&r1=307166&r2=307167&view=diff
==============================================================================
--- lld/trunk/ELF/InputFiles.cpp (original)
+++ lld/trunk/ELF/InputFiles.cpp Wed Jul 5 08:24:42 2017
@@ -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>();
- }
};
}
More information about the llvm-commits
mailing list