diff options
| author | Rui Ueyama <ruiu@google.com> | 2015-04-14 00:31:28 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2015-04-14 00:31:28 +0000 |
| commit | ad87e54f1a2ed2192794bd4aef50cbe8536416e2 (patch) | |
| tree | 80c792d73001ce78a9bbfb10bf137a14ec3b5e21 /lld/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp | |
| parent | 47260c23cabac35a3819a67d3fb3a6cdb7545672 (diff) | |
| download | bcm5719-llvm-ad87e54f1a2ed2192794bd4aef50cbe8536416e2.tar.gz bcm5719-llvm-ad87e54f1a2ed2192794bd4aef50cbe8536416e2.zip | |
ELF: Define ELF{32,64}{LE,BE} types and use them everywhere.
llvm-svn: 234823
Diffstat (limited to 'lld/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp')
| -rw-r--r-- | lld/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lld/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp b/lld/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp index 76eaefb5057..fd2f6987cb5 100644 --- a/lld/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp +++ b/lld/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp @@ -119,10 +119,10 @@ public: ArrayRef<uint8_t> rawContent() const override; }; -template <> ArrayRef<uint8_t> GOT0Atom<Mips32ELType>::rawContent() const { +template <> ArrayRef<uint8_t> GOT0Atom<ELF32LE>::rawContent() const { return llvm::makeArrayRef(mipsGot0AtomContent).slice(4); } -template <> ArrayRef<uint8_t> GOT0Atom<Mips64ELType>::rawContent() const { +template <> ArrayRef<uint8_t> GOT0Atom<ELF64LE>::rawContent() const { return llvm::makeArrayRef(mipsGot0AtomContent); } @@ -135,11 +135,11 @@ public: }; template <> -ArrayRef<uint8_t> GOTModulePointerAtom<Mips32ELType>::rawContent() const { +ArrayRef<uint8_t> GOTModulePointerAtom<ELF32LE>::rawContent() const { return llvm::makeArrayRef(mipsGotModulePointerAtomContent).slice(4); } template <> -ArrayRef<uint8_t> GOTModulePointerAtom<Mips64ELType>::rawContent() const { +ArrayRef<uint8_t> GOTModulePointerAtom<ELF64LE>::rawContent() const { return llvm::makeArrayRef(mipsGotModulePointerAtomContent); } @@ -151,11 +151,11 @@ public: ArrayRef<uint8_t> rawContent() const override; }; -template <> ArrayRef<uint8_t> GOTTLSGdAtom<Mips32ELType>::rawContent() const { +template <> ArrayRef<uint8_t> GOTTLSGdAtom<ELF32LE>::rawContent() const { return llvm::makeArrayRef(mipsGotTlsGdAtomContent).slice(8); } -template <> ArrayRef<uint8_t> GOTTLSGdAtom<Mips64ELType>::rawContent() const { +template <> ArrayRef<uint8_t> GOTTLSGdAtom<ELF64LE>::rawContent() const { return llvm::makeArrayRef(mipsGotTlsGdAtomContent); } @@ -1077,9 +1077,9 @@ RelocationPass<ELFT>::getObjectEntry(const SharedLibraryAtom *a) { static std::unique_ptr<Pass> createPass(MipsLinkingContext &ctx) { switch (ctx.getTriple().getArch()) { case llvm::Triple::mipsel: - return llvm::make_unique<RelocationPass<Mips32ELType>>(ctx); + return llvm::make_unique<RelocationPass<ELF32LE>>(ctx); case llvm::Triple::mips64el: - return llvm::make_unique<RelocationPass<Mips64ELType>>(ctx); + return llvm::make_unique<RelocationPass<ELF64LE>>(ctx); default: llvm_unreachable("Unhandled arch"); } |

