Utility: ignore OS version on non-Darwin targets in `ArchSpec`
authorSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 23 Sep 2020 20:57:55 +0000 (20:57 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 24 Sep 2020 01:21:34 +0000 (18:21 -0700)
commit92d42b32a9b7a085fd200a56022724a77cf12a2d
tree85ffd99f261f8d66ef7dc2d42011dfef3c6e69b4
parentee7ee71f40e904a8380d6439ac4741304b4a2dfd
Utility: ignore OS version on non-Darwin targets in `ArchSpec`

The OS version field is generally not very helpful for non-Darwin
targets.  On Linux, it identifies the kernel version which moves
out-of-sync with the userspace.  On Windows, this field actually ends up
corresponding to the Visual Studio toolset version instead of the OS
version.  Consider non-Darwin targets without an OS version to be fully
specified.

Differential Revision: https://reviews.llvm.org/D88181
Reviewed By: Jonas Devlieghere, Dave Lee
lldb/source/Utility/ArchSpec.cpp