[all-commits] [llvm/llvm-project] 98eb47: Fix stmt-seq-macho.test for little endian platform...

alx32 via All-commits all-commits at lists.llvm.org
Wed Apr 23 11:07:17 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 98eb4761c8640968a922dab417dfa42ef2621c43
      https://github.com/llvm/llvm-project/commit/98eb4761c8640968a922dab417dfa42ef2621c43
  Author: alx32 <103613512+alx32 at users.noreply.github.com>
  Date:   2025-04-23 (Wed, 23 Apr 2025)

  Changed paths:
    M llvm/test/tools/dsymutil/ARM/stmt-seq-macho.test

  Log Message:
  -----------
  Fix stmt-seq-macho.test for little endian platforms (#137017)

The test YAML was created on a little-endian system, so its data is
stored in little-endian order. When the test runs on a big-endian host,
yaml2obj defaults to the host’s byte order, misreading the file as
big-endian and causing a failure.

This change explicitly marks the YAML as little-endian, guaranteeing
that yaml2obj always uses the correct byte order, no matter which
machine runs the test.

The reason that during creation, obj2yaml doesn't specify the endianness
is because the endianness is set as an optional parameter and therefore
it won't be specified if it matches the platform default. Ref:
https://github.com/llvm/llvm-project/blob/d7215c0ee2e4bca1ce87b956335ef6a2cddaf16f/llvm/lib/ObjectYAML/MachOYAML.cpp#L105



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list