diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2018-07-28 11:08:33 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2018-07-28 11:08:33 +0000 |
commit | 20d35e67e67f106f617c939725101223211659f0 (patch) | |
tree | 64eb963cbf5ba58765e0a6b64a440965d66a7a4d /ELF/EhFrame.cpp | |
parent | ae1a339de31cf4065777531959a11e55a2e5fa00 (diff) |
Notes
Diffstat (limited to 'ELF/EhFrame.cpp')
-rw-r--r-- | ELF/EhFrame.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/ELF/EhFrame.cpp b/ELF/EhFrame.cpp index 62abc3973e7e..20b32c0a96e6 100644 --- a/ELF/EhFrame.cpp +++ b/ELF/EhFrame.cpp @@ -20,18 +20,16 @@ #include "Config.h" #include "InputSection.h" #include "Relocations.h" -#include "Strings.h" - +#include "Target.h" #include "lld/Common/ErrorHandler.h" +#include "lld/Common/Strings.h" #include "llvm/BinaryFormat/Dwarf.h" #include "llvm/Object/ELF.h" -#include "llvm/Support/Endian.h" using namespace llvm; using namespace llvm::ELF; using namespace llvm::dwarf; using namespace llvm::object; -using namespace llvm::support::endian; using namespace lld; using namespace lld::elf; @@ -73,7 +71,7 @@ size_t EhReader::readEhRecordSize() { // First 4 bytes of CIE/FDE is the size of the record. // If it is 0xFFFFFFFF, the next 8 bytes contain the size instead, // but we do not support that format yet. - uint64_t V = read32(D.data(), Config->Endianness); + uint64_t V = read32(D.data()); if (V == UINT32_MAX) failOn(D.data(), "CIE/FDE too large"); uint64_t Size = V + 4; |