From 93b6db3de934a3cfca5586df25184fef4a54c500 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 8 Aug 2009 23:39:42 +0000 Subject: sink the 'name' and 'isdirective' state out of MCSection into its derived classes. This totally optimizes PIC16 sections by not having an 'isdirective' bit anymore!! ;-) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78517 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-mc/AsmParser.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tools/llvm-mc/AsmParser.cpp') diff --git a/tools/llvm-mc/AsmParser.cpp b/tools/llvm-mc/AsmParser.cpp index 29657de5d8..8f6583a591 100644 --- a/tools/llvm-mc/AsmParser.cpp +++ b/tools/llvm-mc/AsmParser.cpp @@ -706,7 +706,7 @@ bool AsmParser::ParseDirectiveDarwinSection() { // FIXME: Arch specific. MCSection *S = Ctx.GetSection(Section); if (S == 0) - S = MCSectionCOFF::Create(Section, false, SectionKind(), Ctx); + S = MCSectionMachO::Create(Section, false, SectionKind(), Ctx); Out.SwitchSection(S); return false; @@ -727,7 +727,7 @@ bool AsmParser::ParseDirectiveSectionSwitch(const char *Section, // FIXME: Arch specific. MCSection *S = Ctx.GetSection(Section); if (S == 0) - S = MCSectionCOFF::Create(Section, false, SectionKind(), Ctx); + S = MCSectionMachO::Create(Section, false, SectionKind(), Ctx); Out.SwitchSection(S); return false; @@ -1118,7 +1118,7 @@ bool AsmParser::ParseDirectiveDarwinZerofill() { // FIXME: Arch specific. MCSection *S = Ctx.GetSection(Section); if (S == 0) - S = MCSectionCOFF::Create(Section, false, SectionKind(), Ctx); + S = MCSectionMachO::Create(Section, false, SectionKind(), Ctx); // Create the zerofill section but no symbol Out.EmitZerofill(S); @@ -1178,7 +1178,7 @@ bool AsmParser::ParseDirectiveDarwinZerofill() { // FIXME: Arch specific. MCSection *S = Ctx.GetSection(Section); if (S == 0) - S = MCSectionCOFF::Create(Section, false, SectionKind(), Ctx); + S = MCSectionMachO::Create(Section, false, SectionKind(), Ctx); // Create the zerofill Symbol with Size and Pow2Alignment Out.EmitZerofill(S, Sym, Size, Pow2Alignment); -- cgit v1.2.3-70-g09d2