[all-commits] [llvm/llvm-project] 9c4b2f: [MC][NFC] Ensure tests that intended to cover comp...

Jez Ng via All-commits all-commits at lists.llvm.org
Wed Apr 20 15:11:46 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9c4b2ff9cd3d5ef1c4ef302ab28dfb13737fdca9
      https://github.com/llvm/llvm-project/commit/9c4b2ff9cd3d5ef1c4ef302ab28dfb13737fdca9
  Author: Jez Ng <jezng at fb.com>
  Date:   2022-04-20 (Wed, 20 Apr 2022)

  Changed paths:
    M llvm/test/MC/X86/compact-unwind-cfi_def_cfa.s
    M llvm/test/MC/X86/fp-setup-macho.s

  Log Message:
  -----------
  [MC][NFC] Ensure tests that intended to cover compact unwind code paths do so

These two tests were intended to cover the CU code paths, but invoked
llvm-mc using a generic "darwin" platform. However, MC only attempts to
emit CU for `macos >= 10.6` [1]. Thus we adjust the tests accordingly.

compact-unwind-cfi_def_cfa.s was added in 2fca51d3b45efcf00ffcfe2879cd6d7d98c26258
fp-setup-macho.s was added in 03ffa797ad4fe8f85da532aa3f687841a60b4c0c

[1]: https://github.com/llvm/llvm-project/blob/16c93aaa4a955676fe05f876bd036719a1b14b2d/llvm/lib/MC/MCObjectFileInfo.cpp#L43

Reviewed By: MaskRay, smeenai

Differential Revision: https://reviews.llvm.org/D124126




More information about the All-commits mailing list