[all-commits] [llvm/llvm-project] 397486: [llvm][TextAPI] Handle implicitly upgraded deploym...

Cyndy Ishida via All-commits all-commits at lists.llvm.org
Thu Mar 23 15:01:13 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 397486566e995a019c249784b1d07c53b6ac670d
      https://github.com/llvm/llvm-project/commit/397486566e995a019c249784b1d07c53b6ac670d
  Author: Cyndy Ishida <cyndy_ishida at apple.com>
  Date:   2023-03-23 (Thu, 23 Mar 2023)

  Changed paths:
    M llvm/include/llvm/TextAPI/Platform.h
    M llvm/include/llvm/TextAPI/Target.h
    M llvm/lib/TextAPI/Platform.cpp
    M llvm/lib/TextAPI/TextStubV5.cpp
    M llvm/unittests/TextAPI/TextStubV5Tests.cpp

  Log Message:
  -----------
  [llvm][TextAPI] Handle implicitly upgraded deployment versions

Sometimes the clang driver will receive a target triple where the
deployment version is too low to support the platform + arch. In those
cases, the compiler upgrades the final minOS which is what gets recorded
ultimately by the linker in LC_BUILD_VERSION. TextAPI should also reuse
this logic for capturing minOS in recorded TBDv5 files.

Reviewed By: ributzka

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




More information about the All-commits mailing list