diff options
author | Alex Lorenz <arphaman@gmail.com> | 2018-12-14 01:14:10 +0000 |
---|---|---|
committer | Alex Lorenz <arphaman@gmail.com> | 2018-12-14 01:14:10 +0000 |
commit | afa75d7843c92a7ac9a194f4b1a2396c03e3efd8 (patch) | |
tree | 0b2627d35b4422489fa052fc40254da1fd8f3369 /llvm/test/MC/MachO/osx-version-min-load-command-with-sdk-errors.s | |
parent | 4065da29f071f736f8f1314847939e7859942e91 (diff) | |
download | bcm5719-llvm-afa75d7843c92a7ac9a194f4b1a2396c03e3efd8.tar.gz bcm5719-llvm-afa75d7843c92a7ac9a194f4b1a2396c03e3efd8.zip |
[macho] save the SDK version stored in module metadata into the version min and
build version load commands in the object file
This commit introduces a new metadata node called "SDK Version". It will be set
by the frontend to mark the platform SDK (macOS/iOS/etc) version which was used
during that particular compilation.
This node is used when machine code is emitted, by either saving the SDK version
into the appropriate macho load command (version min/build version), or by
emitting the assembly for these load commands with the SDK version specified as
well.
The assembly for both load commands is extended by allowing it to contain the
sdk_version X, Y [, Z] trailing directive to represent the SDK version
respectively.
rdar://45774000
Differential Revision: https://reviews.llvm.org/D55612
llvm-svn: 349119
Diffstat (limited to 'llvm/test/MC/MachO/osx-version-min-load-command-with-sdk-errors.s')
-rw-r--r-- | llvm/test/MC/MachO/osx-version-min-load-command-with-sdk-errors.s | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/MC/MachO/osx-version-min-load-command-with-sdk-errors.s b/llvm/test/MC/MachO/osx-version-min-load-command-with-sdk-errors.s new file mode 100644 index 00000000000..9547d07e319 --- /dev/null +++ b/llvm/test/MC/MachO/osx-version-min-load-command-with-sdk-errors.s @@ -0,0 +1,10 @@ +// RUN: not llvm-mc -triple x86_64-apple-macos %s -o - 2>&1 | FileCheck %s + +.macosx_version_min 10,13,2 sdk_version 10 +// CHECK: SDK minor version number required, comma expected + +.macosx_version_min 10,13,2 sdk_version 10, +// CHECK: invalid SDK minor version number, integer expected + +.macosx_version_min 10,13,2 sdk_version 10 +// CHECK: SDK minor version number required, comma expected |