mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
da257e75a8
Add a new architecture definition for arm64_32. The change should allow the new architecture arm64_32 to be recognized in several pieces of code, TextAPI parsing one of them. llvm-lipo will also recognize the architecture and will allow lipoing files with this architecture without failing. Includes a small test that the architecture is recognized by llvm-nm. Reviewed By: cishida Differential Revision: https://reviews.llvm.org/D99673
67 lines
2.4 KiB
Plaintext
67 lines
2.4 KiB
Plaintext
RUN: llvm-nm %p/Inputs/tapi-v1.tbd 2>&1\
|
|
RUN: | FileCheck %s -check-prefix V1
|
|
|
|
RUN: llvm-nm %p/Inputs/tapi-v2.tbd \
|
|
RUN: | FileCheck %s -check-prefix V2
|
|
|
|
RUN: llvm-nm --add-inlinedinfo --arch=x86_64 %p/Inputs/tapi-v3.tbd \
|
|
RUN: | FileCheck %s -check-prefix V3
|
|
|
|
RUN: llvm-nm %p/Inputs/tapi-v4.tbd \
|
|
RUN: | FileCheck %s -check-prefix V4
|
|
|
|
RUN: llvm-nm %p/Inputs/tapi-v4-watchos.tbd \
|
|
RUN: | FileCheck %s -check-prefix V4-WATCH
|
|
|
|
V1: /u/l/libfoo.dylib (for architecture armv7):
|
|
V1-NEXT: 00000000 S _sym
|
|
V1: /u/l/libfoo.dylib (for architecture armv7s):
|
|
V1-NEXT: 00000000 S _sym
|
|
|
|
V2: /u/l/libfoo.dylib (for architecture armv7):
|
|
V2-NEXT: 00000000 S _sym1
|
|
V2-NEXT: 00000000 S _sym2
|
|
V2-NEXT: 00000000 S _sym3
|
|
V2: /u/l/libfoo.dylib (for architecture armv7s):
|
|
V2-NEXT: 00000000 S _sym1
|
|
V2-NEXT: 00000000 S _sym2
|
|
V2-NEXT: 00000000 S _sym3
|
|
V2: /u/l/libfoo.dylib (for architecture arm64):
|
|
V2-NEXT: U _sym
|
|
V2-NEXT: 0000000000000000 S _sym1
|
|
V2-NEXT: 0000000000000000 S _sym2
|
|
V2-NEXT: 0000000000000000 S _sym3
|
|
|
|
V3: /usr/lib/libfoo.dylib (for architecture x86_64):
|
|
V3-NEXT: 0000000000000000 S _OBJC_CLASS_$_NSBlockPredicate
|
|
V3-NEXT: 0000000000000000 S _OBJC_CLASS_$_NSString
|
|
V3-NEXT: 0000000000000000 S _OBJC_EHTYPE_$_NSString
|
|
V3-NEXT: 0000000000000000 S _OBJC_IVAR_$_NSBlockPredicate._block
|
|
V3-NEXT: 0000000000000000 S _OBJC_METACLASS_$_NSBlockPredicate
|
|
V3-NEXT: 0000000000000000 S _OBJC_METACLASS_$_NSString
|
|
V3-NEXT: 0000000000000000 S _sym1
|
|
V3-NEXT: 0000000000000000 S _sym2
|
|
V3: /usr/lib/liba.dylib (for architecture x86_64):
|
|
V3-NEXT: 0000000000000000 S _OBJC_CLASS_$_NSBlockPredicate
|
|
V3-NEXT: 0000000000000000 S _OBJC_CLASS_$_NSString
|
|
V3-NEXT: 0000000000000000 S _OBJC_EHTYPE_$_NSString
|
|
V3-NEXT: 0000000000000000 S _OBJC_IVAR_$_NSBlockPredicate._block
|
|
V3-NEXT: 0000000000000000 S _OBJC_METACLASS_$_NSBlockPredicate
|
|
V3-NEXT: 0000000000000000 S _OBJC_METACLASS_$_NSString
|
|
V3-NEXT: 0000000000000000 S _sym1
|
|
V3-NEXT: 0000000000000000 S _sym2
|
|
|
|
V4: /u/l/libFoo.dylib (for architecture i386):
|
|
V4-NEXT: 00000000 S _sym1
|
|
V4-NEXT: 00000000 W _sym2
|
|
V4-NEXT: 00000000 S _sym3
|
|
V4-NEXT: 00000000 S _sym4
|
|
V4: /u/l/libFoo.dylib (for architecture x86_64):
|
|
V4-NEXT: 0000000000000000 S _sym3
|
|
V4-NEXT: 0000000000000000 S _sym4
|
|
|
|
V4-WATCH: /u/l/libFoo.dylib (for architecture armv7k)
|
|
V4-WATCH-NEXT: 00000000 S _sym1
|
|
V4-WATCH: /u/l/libFoo.dylib (for architecture arm64_32)
|
|
V4-WATCH-NEXT: 00000000 S _sym1
|