summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/ELF/ARM/ARMELFReader.h
diff options
context:
space:
mode:
Diffstat (limited to 'lld/lib/ReaderWriter/ELF/ARM/ARMELFReader.h')
-rw-r--r--lld/lib/ReaderWriter/ELF/ARM/ARMELFReader.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/lld/lib/ReaderWriter/ELF/ARM/ARMELFReader.h b/lld/lib/ReaderWriter/ELF/ARM/ARMELFReader.h
index 82714bd9fcb..299fe282185 100644
--- a/lld/lib/ReaderWriter/ELF/ARM/ARMELFReader.h
+++ b/lld/lib/ReaderWriter/ELF/ARM/ARMELFReader.h
@@ -18,16 +18,8 @@ namespace elf {
typedef llvm::object::ELFType<llvm::support::little, 2, false> ARMELFType;
-struct ARMELFFileCreateELFTraits {
- template <class ELFT>
- static llvm::ErrorOr<std::unique_ptr<lld::File>>
- create(std::unique_ptr<llvm::MemoryBuffer> mb, ARMLinkingContext &ctx) {
- return lld::elf::ARMELFFile<ELFT>::create(std::move(mb), ctx);
- }
-};
-
-typedef ELFObjectReader<ARMELFType, ARMELFFileCreateELFTraits,
- ARMLinkingContext> ARMELFObjectReader;
+typedef ELFObjectReader<ARMELFType, ARMLinkingContext, lld::elf::ARMELFFile>
+ ARMELFObjectReader;
typedef ELFDSOReader<ARMELFType, ARMLinkingContext> ARMELFDSOReader;
} // namespace elf
OpenPOWER on IntegriCloud