From cb37916a2596e0936c76bbd9927f8353faac9fa8 Mon Sep 17 00:00:00 2001 From: dyung Date: Fri, 25 Jul 2025 23:21:59 -0400 Subject: Revert "MC: Allocate initial fragment and define section symbol in changeSection" (#150736) Reverts llvm/llvm-project#150574 This is causing a test failure on AArch64 MacOS bots: https://lab.llvm.org/buildbot/#/builders/190/builds/24187 --- llvm/lib/MC/MCMachOStreamer.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'llvm/lib/MC/MCMachOStreamer.cpp') diff --git a/llvm/lib/MC/MCMachOStreamer.cpp b/llvm/lib/MC/MCMachOStreamer.cpp index 4934815..8c3332c 100644 --- a/llvm/lib/MC/MCMachOStreamer.cpp +++ b/llvm/lib/MC/MCMachOStreamer.cpp @@ -140,8 +140,6 @@ void MCMachOStreamer::changeSection(MCSection *Section, uint32_t Subsection) { MCSymbol *Label = getContext().createLinkerPrivateTempSymbol(); Section->setBeginSymbol(Label); HasSectionLabel[Section] = true; - if (!Label->isInSection()) - emitLabel(Label); } } -- cgit v1.1