aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCObjectFileInfo.cpp
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2022-11-25 13:43:17 +0000
committerGuillaume Chatelet <gchatelet@google.com>2022-11-28 08:31:49 +0000
commitf5dd9dda63d14323dca56b634c968ca9b1b5a686 (patch)
tree45236b5d2bab67edd6cd05abe3fefc37899f776d /llvm/lib/MC/MCObjectFileInfo.cpp
parentbc0ae48382a3a5426153928d5f222d6d31f57bac (diff)
downloadllvm-f5dd9dda63d14323dca56b634c968ca9b1b5a686.zip
llvm-f5dd9dda63d14323dca56b634c968ca9b1b5a686.tar.gz
llvm-f5dd9dda63d14323dca56b634c968ca9b1b5a686.tar.bz2
Remove support for 10.4 Tiger from AsmPrinter
I stumbled on this while trying to tighten Alignment in MCStreamer (D138705). From the [wikipedia page](https://en.wikipedia.org/wiki/Mac_OS_X_Tiger), last release of MacOSX Tiger was released 15 years ago and is not supported anymore by Apple. Relevant commit : https://github.com/llvm/llvm-project/commit/9f06f911d197577b80d208a167980833b4fb9ad5#diff-17b326b45ef392288420bed274616afa7df81b27576c96723b3c25f5198dc398 Differential Revision: https://reviews.llvm.org/D138707
Diffstat (limited to 'llvm/lib/MC/MCObjectFileInfo.cpp')
-rw-r--r--llvm/lib/MC/MCObjectFileInfo.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/llvm/lib/MC/MCObjectFileInfo.cpp b/llvm/lib/MC/MCObjectFileInfo.cpp
index 5783947..00213ef 100644
--- a/llvm/lib/MC/MCObjectFileInfo.cpp
+++ b/llvm/lib/MC/MCObjectFileInfo.cpp
@@ -80,10 +80,6 @@ void MCObjectFileInfo::initMachOMCObjectFileInfo(const Triple &T) {
FDECFIEncoding = dwarf::DW_EH_PE_pcrel;
- // .comm doesn't support alignment before Leopard.
- if (T.isMacOSX() && T.isMacOSXVersionLT(10, 5))
- CommDirectiveSupportsAlignment = false;
-
TextSection // .text
= Ctx->getMachOSection("__TEXT", "__text",
MachO::S_ATTR_PURE_INSTRUCTIONS,
@@ -556,8 +552,6 @@ void MCObjectFileInfo::initCOFFMCObjectFileInfo(const Triple &T) {
// and to set the ISA selection bit for calls accordingly.
const bool IsThumb = T.getArch() == Triple::thumb;
- CommDirectiveSupportsAlignment = true;
-
// COFF
BSSSection = Ctx->getCOFFSection(
".bss", COFF::IMAGE_SCN_CNT_UNINITIALIZED_DATA |
@@ -1035,7 +1029,6 @@ void MCObjectFileInfo::initMCObjectFileInfo(MCContext &MCCtx, bool PIC,
Ctx = &MCCtx;
// Common.
- CommDirectiveSupportsAlignment = true;
SupportsWeakOmittedEHFrame = true;
SupportsCompactUnwindWithoutEHFrame = false;
OmitDwarfIfHaveCompactUnwind = false;