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/lib/Object/Archive.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/lib/Object/Archive.cpp')
-rw-r--r-- | llvm/lib/Object/Archive.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Object/Archive.cpp b/llvm/lib/Object/Archive.cpp index bf9a1ce..fdd8782 100644 --- a/llvm/lib/Object/Archive.cpp +++ b/llvm/lib/Object/Archive.cpp @@ -1421,7 +1421,7 @@ BigArchive::BigArchive(MemoryBufferRef Source, Error &Err) // 64-bit global symbol tables, we need to merge them into a single table. raw_string_ostream Out(MergedGlobalSymtabBuf); uint64_t SymNum = SymtabInfos[0].SymNum + SymtabInfos[1].SymNum; - write(Out, SymNum, support::big); + write(Out, SymNum, llvm::endianness::big); // Merge symbol offset. Out << SymtabInfos[0].SymbolOffsetTable; Out << SymtabInfos[1].SymbolOffsetTable; |