================
@@ -921,8 +923,10 @@ class Triple {
/// Tests whether the target is LFI.
bool isLFI() const {
- return getArch() == Triple::aarch64 &&
- getSubArch() == Triple::AArch64SubArch_lfi;
+ return (getArch() == Triple::aarch64 &&
+ getSubArch() == Triple::AArch64SubArch_lfi) ||
+ (getArch() == Triple::x86_64 &&
+ getSubArch() == Triple::X86_64SubArch_lfi);
----------------
zyedidia wrote:
It's not strictly necessary, I've just done it that way for consistency with
other uses of sub-architectures like the check in `isWindowsArm64EC()` that
checks `getArch() == Triple::aarch64 && getSubArch() ==
Triple::AArch64SubArch_arm64ec`.
https://github.com/llvm/llvm-project/pull/189569
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits