diff options
-rw-r--r-- | lld/include/lld/ReaderWriter/ELFLinkingContext.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lld/include/lld/ReaderWriter/ELFLinkingContext.h b/lld/include/lld/ReaderWriter/ELFLinkingContext.h index 5132eabeda3..605d343f7e5 100644 --- a/lld/include/lld/ReaderWriter/ELFLinkingContext.h +++ b/lld/include/lld/ReaderWriter/ELFLinkingContext.h @@ -36,6 +36,11 @@ class File; class Reference; namespace elf { +using llvm::object::ELF32LE; +using llvm::object::ELF32BE; +using llvm::object::ELF64LE; +using llvm::object::ELF64BE; + class ELFWriter; std::unique_ptr<ELFLinkingContext> createAArch64LinkingContext(llvm::Triple); @@ -46,11 +51,6 @@ std::unique_ptr<ELFLinkingContext> createMipsLinkingContext(llvm::Triple); std::unique_ptr<ELFLinkingContext> createX86LinkingContext(llvm::Triple); std::unique_ptr<ELFLinkingContext> createX86_64LinkingContext(llvm::Triple); -typedef llvm::object::ELFType<llvm::support::little, false> ELF32LE; -typedef llvm::object::ELFType<llvm::support::big, false> ELF32BE; -typedef llvm::object::ELFType<llvm::support::little, true> ELF64LE; -typedef llvm::object::ELFType<llvm::support::big, true> ELF64BE; - class TargetRelocationHandler { public: virtual ~TargetRelocationHandler() {} |