[lld] 7654d8e - [lld-macho][nfc] Convert the mock libSystem.tbd to TBDv4

Jez Ng via llvm-commits llvm-commits at lists.llvm.org
Thu May 6 08:19:50 PDT 2021


Author: Jez Ng
Date: 2021-05-06T11:19:40-04:00
New Revision: 7654d8e1a96cb9dda0318ff5489c17f3780f1944

URL: https://github.com/llvm/llvm-project/commit/7654d8e1a96cb9dda0318ff5489c17f3780f1944
DIFF: https://github.com/llvm/llvm-project/commit/7654d8e1a96cb9dda0318ff5489c17f3780f1944.diff

LOG: [lld-macho][nfc] Convert the mock libSystem.tbd to TBDv4

It doesn't seem like TBDv3 allows for specifying multiple platforms, so I'm
upgrading us to TBDv4. (We need to support multiple platforms in order to test
that we can handle zippered dylibs; that functionality will be added in an
upcoming diff.)

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

Added: 
    

Modified: 
    lld/test/MachO/Inputs/MacOSX.sdk/usr/lib/libSystem.tbd

Removed: 
    


################################################################################
diff  --git a/lld/test/MachO/Inputs/MacOSX.sdk/usr/lib/libSystem.tbd b/lld/test/MachO/Inputs/MacOSX.sdk/usr/lib/libSystem.tbd
index 427d598bb6a26..b333678cc8c33 100644
--- a/lld/test/MachO/Inputs/MacOSX.sdk/usr/lib/libSystem.tbd
+++ b/lld/test/MachO/Inputs/MacOSX.sdk/usr/lib/libSystem.tbd
@@ -1,42 +1,64 @@
---- !tapi-tbd-v3
-archs:            [ x86_64, arm64 ]
-uuids:            [ 'x86_64: 00000000-0000-0000-0000-000000000000', 'arm64: 00000000-0000-0000-0000-000000000010' ]
-platform:         macosx
+--- !tapi-tbd
+tbd-version:      4
+targets:          [ x86_64-macos, arm64-macos ]
+uuids:
+  - target:       x86_64-macos
+    value:        00000000-0000-0000-0000-000000000000
+  - target:       arm64-macos
+    value:        00000000-0000-0000-0000-000000000001
 install-name:     '/usr/lib/libSystem.dylib'
 current-version:  0001.001.1
-exports:
-  - archs:        [ 'x86_64', 'arm64' ]
-    re-exports:   [ '/usr/lib/system/libdyld.dylib',
+reexported-libraries:
+  - targets:      [ x86_64-macos, arm64-macos ]
+    libraries:    [ '/usr/lib/system/libdyld.dylib',
                     '/usr/lib/system/libsystem_c.dylib',
                     '/usr/lib/system/libsystem_m.dylib' ]
---- !tapi-tbd-v3
-archs:            [ x86_64, arm64 ]
-uuids:            [ 'x86_64: 00000000-0000-0000-0000-000000000001', 'arm64: 00000000-0000-0000-0000-000000000011' ]
-platform:         macosx
+--- !tapi-tbd
+tbd-version:      4
+targets:          [ x86_64-macos, arm64-macos ]
+uuids:
+  - target:       x86_64-macos
+    value:        00000000-0000-0000-0000-000000000002
+  - target:       arm64-macos
+    value:        00000000-0000-0000-0000-000000000003
 install-name:     '/usr/lib/system/libdyld.dylib'
 current-version:  0001.001.1
-parent-umbrella:  System
+parent-umbrella:
+  - targets:      [ x86_64-macos, arm64-macos ]
+    umbrella:     System
 exports:
-  - archs:        [ 'x86_64', 'arm64' ]
+  - targets:      [ x86_64-macos, arm64-macos ]
     symbols:      [ dyld_stub_binder, __tlv_bootstrap ]
---- !tapi-tbd-v3
-archs:            [ x86_64, arm64 ]
-uuids:            [ 'x86_64: 00000000-0000-0000-0000-000000000002', 'arm64: 00000000-0000-0000-0000-000000000012' ]
-platform:         macosx
+--- !tapi-tbd
+tbd-version:      4
+targets:          [ x86_64-macos, arm64-macos ]
+uuids:
+  - target:       x86_64-macos
+    value:        00000000-0000-0000-0000-000000000003
+  - target:       arm64-macos
+    value:        00000000-0000-0000-0000-000000000004
 install-name:     '/usr/lib/system/libsystem_c.dylib'
 current-version:  0001.001.1
-parent-umbrella:  System
+parent-umbrella:
+  - targets:      [ x86_64-macos, arm64-macos ]
+    umbrella:     System
 exports:
-  - archs:        [ 'x86_64', 'arm64' ]
+  - targets:      [ x86_64-macos, arm64-macos ]
     symbols:      [ ]
---- !tapi-tbd-v3
-archs:            [ x86_64, arm64 ]
-uuids:            [ 'x86_64: 00000000-0000-0000-0000-000000000003', 'arm64: 00000000-0000-0000-0000-000000000013' ]
-platform:         macosx
+--- !tapi-tbd
+tbd-version:      4
+targets:          [ x86_64-macos, arm64-macos ]
+uuids:
+  - target:       x86_64-macos
+    value:        00000000-0000-0000-0000-000000000004
+  - target:       arm64-macos
+    value:        00000000-0000-0000-0000-000000000005
 install-name:     '/usr/lib/system/libsystem_m.dylib'
 current-version:  0001.001.1
-parent-umbrella:  System
+parent-umbrella:
+  - targets:      [ x86_64-macos, arm64-macos ]
+    umbrella:     System
 exports:
-  - archs:        [ 'x86_64', 'arm64' ]
+  - targets:      [ x86_64-macos, arm64-macos ]
     symbols:      [ ___nan ]
 ...


        


More information about the llvm-commits mailing list