[ABISysV] Fix regression for Simulator and MacABI
authorJonas Devlieghere <jonas@devlieghere.com>
Mon, 23 Sep 2019 19:06:00 +0000 (19:06 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Mon, 23 Sep 2019 19:06:00 +0000 (19:06 +0000)
commit869ef0a627952545437fab77c3b97854a189625b
treeefcf3e9f9676b5b80128764122d3a91302a5f69a
parent72a4621cdf0bb39db58733c63fc98afef6160867
[ABISysV] Fix regression for Simulator and MacABI

The ABISysV ABI was refactored in r364216 to support the Windows ABI for
x86_64. In particular it changed ABISysV_x86_64::CreateInstance to
switch on the OS type. This breaks debugging MacABI apps as well as apps
in the simulator. This adds back the necessary cases.

We have a test on Github that exercises this code path and which I'd
like to upstream once the remaining MacABI parts become available in
clang.

Differential revision: https://reviews.llvm.org/D67869

llvm-svn: 372642
lldb/source/Plugins/ABI/SysV-x86_64/ABISysV_x86_64.cpp