diff options
author | Harald van Dijk <harald@gigawatt.nl> | 2021-06-07 20:48:39 +0100 |
---|---|---|
committer | Harald van Dijk <harald@gigawatt.nl> | 2021-06-07 20:48:39 +0100 |
commit | 75521bd9d8d1e39b1a765a14d95c49291d2adde5 (patch) | |
tree | 61f977a16fe6025f5044ead1f6980ee874ed6163 /llvm/lib/Object/XCOFFObjectFile.cpp | |
parent | 6de45b9e6a2c4b69ca82916a4cc1b4b8636d79b3 (diff) | |
download | llvm-75521bd9d8d1e39b1a765a14d95c49291d2adde5.zip llvm-75521bd9d8d1e39b1a765a14d95c49291d2adde5.tar.gz llvm-75521bd9d8d1e39b1a765a14d95c49291d2adde5.tar.bz2 |
[X32] Add Triple::isX32(), use it.
So far, support for x86_64-linux-gnux32 has been handled by explicit
comparisons of Triple.getEnvironment() to GNUX32. This worked as long as
x86_64-linux-gnux32 was the only X32 environment to worry about, but we
now have x86_64-linux-muslx32 as well. To support this, this change adds
an isX32() function and uses it. It replaces all checks for GNUX32 or
MuslX32 by isX32(), except for the following:
- Triple::isGNUEnvironment() and Triple::isMusl() are supposed to treat
GNUX32 and MuslX32 differently.
- computeTargetTriple() needs to be able to transform triples to add or
remove X32 from the environment and needs to map GNU to GNUX32, and
Musl to MuslX32.
- getMultiarchTriple() completely lacks any Musl support and retains the
explicit check for GNUX32 as it can only return x86_64-linux-gnux32.
Reviewed By: MaskRay
Differential Revision: https://reviews.llvm.org/D103777
Diffstat (limited to 'llvm/lib/Object/XCOFFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions