//===--------- lib/ReaderWriter/ELF/ARM/ARMELFReader.h --------------------===// // // The LLVM Linker // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// #ifndef LLD_READER_WRITER_ARM_ARM_ELF_READER_H #define LLD_READER_WRITER_ARM_ARM_ELF_READER_H #include "ARMELFFile.h" #include "ELFReader.h" namespace lld { namespace elf { typedef llvm::object::ELFType ARMELFType; struct ARMDynamicFileCreateELFTraits { typedef llvm::ErrorOr> result_type; template static result_type create(std::unique_ptr mb, ARMLinkingContext &ctx) { return lld::elf::ARMDynamicFile::create(std::move(mb), ctx); } }; struct ARMELFFileCreateELFTraits { typedef llvm::ErrorOr> result_type; template static result_type create(std::unique_ptr mb, ARMLinkingContext &ctx) { return lld::elf::ARMELFFile::create(std::move(mb), ctx); } }; class ARMELFObjectReader : public ELFObjectReader { public: ARMELFObjectReader(ARMLinkingContext &ctx) : ELFObjectReader(ctx, llvm::ELF::EM_ARM) {} }; class ARMELFDSOReader : public ELFDSOReader { public: ARMELFDSOReader(ARMLinkingContext &ctx) : ELFDSOReader(ctx, llvm::ELF::EM_ARM) {} }; } // namespace elf } // namespace lld #endif // LLD_READER_WRITER_ARM_ARM_ELF_READER_H