diff options
author | prabhukr <prabhukr@google.com> | 2023-09-28 11:13:40 -0700 |
---|---|---|
committer | prabhukr <prabhukr@google.com> | 2023-09-28 11:36:22 -0700 |
commit | 720e3bacbd9fdba05645a4d621d43ad712c44df3 (patch) | |
tree | 91e9ef91f75fdd1092a12c7a9213f1b48aa31873 /llvm/lib/IR/DataLayout.cpp | |
parent | 0ea3d88bdb16aa6e9a0043cc3ed93dcb88a89dea (diff) | |
download | llvm-720e3bacbd9fdba05645a4d621d43ad712c44df3.zip llvm-720e3bacbd9fdba05645a4d621d43ad712c44df3.tar.gz llvm-720e3bacbd9fdba05645a4d621d43ad712c44df3.tar.bz2 |
[Basic] Support 64-bit x86 target for UEFI
Adding support for X86_64 UEFI target to begin with.
Reviewed By: phosek, MaskRay
Differential Revision: https://reviews.llvm.org/D152206
Diffstat (limited to 'llvm/lib/IR/DataLayout.cpp')
-rw-r--r-- | llvm/lib/IR/DataLayout.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/DataLayout.cpp b/llvm/lib/IR/DataLayout.cpp index 53842b1..d324c4b4 100644 --- a/llvm/lib/IR/DataLayout.cpp +++ b/llvm/lib/IR/DataLayout.cpp @@ -171,7 +171,7 @@ const char *DataLayout::getManglingComponent(const Triple &T) { return "-m:l"; if (T.isOSBinFormatMachO()) return "-m:o"; - if (T.isOSWindows() && T.isOSBinFormatCOFF()) + if ((T.isOSWindows() || T.isUEFI()) && T.isOSBinFormatCOFF()) return T.getArch() == Triple::x86 ? "-m:x" : "-m:w"; if (T.isOSBinFormatXCOFF()) return "-m:a"; |