diff options
author | Kazu Hirata <kazu@google.com> | 2023-10-12 21:21:44 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2023-10-12 21:21:45 -0700 |
commit | 4a0ccfa865437fe29ef2ecb18152df7694dddb7f (patch) | |
tree | 94df9df11f3172a15a522440a2175d6d1d9b6757 /llvm/tools/llvm-objdump/llvm-objdump.cpp | |
parent | 2045cca0c3d27f046c96257abfa11c769ce9b1ce (diff) | |
download | llvm-4a0ccfa865437fe29ef2ecb18152df7694dddb7f.zip llvm-4a0ccfa865437fe29ef2ecb18152df7694dddb7f.tar.gz llvm-4a0ccfa865437fe29ef2ecb18152df7694dddb7f.tar.bz2 |
Use llvm::endianness::{big,little,native} (NFC)
Note that llvm::support::endianness has been renamed to
llvm::endianness while becoming an enum class as opposed to an
enum. This patch replaces support::{big,little,native} with
llvm::endianness::{big,little,native}.
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
-rw-r--r-- | llvm/tools/llvm-objdump/llvm-objdump.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/tools/llvm-objdump/llvm-objdump.cpp b/llvm/tools/llvm-objdump/llvm-objdump.cpp index 89d59e2..537c18b 100644 --- a/llvm/tools/llvm-objdump/llvm-objdump.cpp +++ b/llvm/tools/llvm-objdump/llvm-objdump.cpp @@ -685,8 +685,9 @@ public: // using the .long directive, or .byte directive if fewer than 4 bytes // remaining if (Bytes.size() >= 4) { - OS << format("\t.long 0x%08" PRIx32 " ", - support::endian::read32<support::little>(Bytes.data())); + OS << format( + "\t.long 0x%08" PRIx32 " ", + support::endian::read32<llvm::endianness::little>(Bytes.data())); OS.indent(42); } else { OS << format("\t.byte 0x%02" PRIx8, Bytes[0]); @@ -1168,7 +1169,7 @@ static uint64_t dumpARMELFData(uint64_t SectionAddr, uint64_t Index, ArrayRef<MappingSymbolPair> MappingSymbols, const MCSubtargetInfo &STI, raw_ostream &OS) { llvm::endianness Endian = - Obj.isLittleEndian() ? support::little : support::big; + Obj.isLittleEndian() ? llvm::endianness::little : llvm::endianness::big; size_t Start = OS.tell(); OS << format("%8" PRIx64 ": ", SectionAddr + Index); if (Index + 4 <= End) { |