diff options
author | Fangrui Song <maskray@google.com> | 2018-12-14 07:46:58 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2018-12-14 07:46:58 +0000 |
commit | d2ed5be8152a1fdeab9527d9b59694da72e53872 (patch) | |
tree | 35c33b7f84911b4bd36f23d3bae36457ee77ee49 /llvm/lib/Object/ELF.cpp | |
parent | 13c9c054410ca504d5e0c50e7d3b68bcbb8e200b (diff) | |
download | bcm5719-llvm-d2ed5be8152a1fdeab9527d9b59694da72e53872.tar.gz bcm5719-llvm-d2ed5be8152a1fdeab9527d9b59694da72e53872.zip |
[Object] Rename getRelrRelocationType to getRelativeRelocationType
Summary:
The two utility functions were added in D47919 to support SHT_RELR.
However, these are just relative relocations types and are't
necessarily be named Relr.
Reviewers: phosek, dberris
Reviewed By: dberris
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D55691
llvm-svn: 349133
Diffstat (limited to 'llvm/lib/Object/ELF.cpp')
-rw-r--r-- | llvm/lib/Object/ELF.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Object/ELF.cpp b/llvm/lib/Object/ELF.cpp index 2edab0b1373..cf8313f88f9 100644 --- a/llvm/lib/Object/ELF.cpp +++ b/llvm/lib/Object/ELF.cpp @@ -154,7 +154,7 @@ StringRef llvm::object::getELFRelocationTypeName(uint32_t Machine, #undef ELF_RELOC -uint32_t llvm::object::getELFRelrRelocationType(uint32_t Machine) { +uint32_t llvm::object::getELFRelativeRelocationType(uint32_t Machine) { switch (Machine) { case ELF::EM_X86_64: return ELF::R_X86_64_RELATIVE; @@ -300,7 +300,7 @@ ELFFile<ELFT>::decode_relrs(Elf_Relr_Range relrs) const { Elf_Rela Rela; Rela.r_info = 0; Rela.r_addend = 0; - Rela.setType(getRelrRelocationType(), false); + Rela.setType(getRelativeRelocationType(), false); std::vector<Elf_Rela> Relocs; // Word type: uint32_t for Elf32, and uint64_t for Elf64. |