diff options
author | Prabhuk <prabhukr@google.com> | 2025-01-28 15:18:10 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-28 15:18:10 -0800 |
commit | e7f02241ad4d38fc50b63ad589a024323e6bc3c6 (patch) | |
tree | 901c881279d64038ff996d258066117e2cc25b66 /llvm/lib/IR/DataLayout.cpp | |
parent | 437040fe3df48eeb8584c25b45f0058e8fbac098 (diff) | |
download | llvm-e7f02241ad4d38fc50b63ad589a024323e6bc3c6.zip llvm-e7f02241ad4d38fc50b63ad589a024323e6bc3c6.tar.gz llvm-e7f02241ad4d38fc50b63ad589a024323e6bc3c6.tar.bz2 |
[nfc][llvm] Clean up isUEFI checks (#124845)
The check for `isOSWindows() || isUEFI()` is used in several places
across the codebase. Introducing `isOSWindowsOrUEFI()` in Triple.h
to simplify these checks.
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 95a5e59..0cf0bfc 100644 --- a/llvm/lib/IR/DataLayout.cpp +++ b/llvm/lib/IR/DataLayout.cpp @@ -178,7 +178,7 @@ const char *DataLayout::getManglingComponent(const Triple &T) { return "-m:l"; if (T.isOSBinFormatMachO()) return "-m:o"; - if ((T.isOSWindows() || T.isUEFI()) && T.isOSBinFormatCOFF()) + if (T.isOSWindowsOrUEFI() && T.isOSBinFormatCOFF()) return T.getArch() == Triple::x86 ? "-m:x" : "-m:w"; if (T.isOSBinFormatXCOFF()) return "-m:a"; |