[all-commits] [llvm/llvm-project] 6b31b0: [Support] Deprecate system_endianness (#68279)

Kazu Hirata via All-commits all-commits at lists.llvm.org
Thu Oct 5 09:17:22 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6b31b026006ee688019e7cf762ab1641df8ff8f6
      https://github.com/llvm/llvm-project/commit/6b31b026006ee688019e7cf762ab1641df8ff8f6
  Author: Kazu Hirata <kazu at google.com>
  Date:   2023-10-05 (Thu, 05 Oct 2023)

  Changed paths:
    M clang/include/clang/Serialization/ModuleFileExtension.h
    M llvm/include/llvm/ExecutionEngine/Orc/MachOBuilder.h
    M llvm/include/llvm/Support/Endian.h
    M llvm/include/llvm/Support/HashBuilder.h
    M llvm/lib/DWARFLinkerParallel/DWARFLinkerImpl.cpp
    M llvm/lib/DWARFLinkerParallel/OutputSections.h
    M llvm/lib/DebugInfo/GSYM/FunctionInfo.cpp
    M llvm/lib/DebugInfo/GSYM/GsymReader.cpp
    M llvm/lib/ExecutionEngine/Orc/MachOPlatform.cpp
    M llvm/unittests/DebugInfo/GSYM/GSYMTest.cpp
    M llvm/unittests/Support/HashBuilderTest.cpp
    M mlir/lib/AsmParser/AttributeParser.cpp
    M mlir/lib/IR/AsmPrinter.cpp
    M mlir/lib/IR/BuiltinAttributes.cpp
    M mlir/unittests/Bytecode/BytecodeTest.cpp

  Log Message:
  -----------
  [Support] Deprecate system_endianness (#68279)

system_endianness() just returns llvm::endianness::native, a
compile-time constant equivalent to std::native in C++20.  This patch
deprecates system_endianness() while replacing all invocations of
system_endianness() with llvm::endianness::native.

While we are at it, this patch replaces
llvm::support::endianness::{big,little} with
llvm::endianness::{big,little} in those statements that happen to call
system_endianness().  It does not go out of its way to replace other
occurrences of llvm::support::endianness::{big,little}.




More information about the All-commits mailing list