aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/DataLayout.cpp
diff options
context:
space:
mode:
authorprabhukr <prabhukr@google.com>2023-09-27 20:20:29 -0700
committerprabhukr <prabhukr@google.com>2023-09-27 20:23:11 -0700
commit315a407086b0ab302d0293b720d7f9b3e8f6ffa9 (patch)
tree0715e00f1556823b679007b72772840caf7539ff /llvm/lib/IR/DataLayout.cpp
parent4a03ea1a385c953116a936516b098fc80189b254 (diff)
downloadllvm-315a407086b0ab302d0293b720d7f9b3e8f6ffa9.zip
llvm-315a407086b0ab302d0293b720d7f9b3e8f6ffa9.tar.gz
llvm-315a407086b0ab302d0293b720d7f9b3e8f6ffa9.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.cpp2
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";