aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/COFFObjectFile.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2023-10-12 21:21:44 -0700
committerKazu Hirata <kazu@google.com>2023-10-12 21:21:45 -0700
commit4a0ccfa865437fe29ef2ecb18152df7694dddb7f (patch)
tree94df9df11f3172a15a522440a2175d6d1d9b6757 /llvm/lib/Object/COFFObjectFile.cpp
parent2045cca0c3d27f046c96257abfa11c769ce9b1ce (diff)
downloadllvm-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/lib/Object/COFFObjectFile.cpp')
-rw-r--r--llvm/lib/Object/COFFObjectFile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Object/COFFObjectFile.cpp b/llvm/lib/Object/COFFObjectFile.cpp
index 08eb0d0..574f7a7 100644
--- a/llvm/lib/Object/COFFObjectFile.cpp
+++ b/llvm/lib/Object/COFFObjectFile.cpp
@@ -1907,7 +1907,7 @@ Error ResourceSectionRef::load(const COFFObjectFile *O, const SectionRef &S) {
Expected<StringRef> Contents = Section.getContents();
if (!Contents)
return Contents.takeError();
- BBS = BinaryByteStream(*Contents, support::little);
+ BBS = BinaryByteStream(*Contents, llvm::endianness::little);
const coff_section *COFFSect = Obj->getCOFFSection(Section);
ArrayRef<coff_relocation> OrigRelocs = Obj->getRelocations(COFFSect);
Relocs.reserve(OrigRelocs.size());