diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-08-08 23:39:42 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-08-08 23:39:42 +0000 |
| commit | 591105c540fbdbbe41539ac0aa7c6eed393478ff (patch) | |
| tree | 3caca0506ccb45794ba71c210ffdda9c95d3aa77 /llvm/tools/llvm-mc/AsmParser.cpp | |
| parent | 24f38969d5a2148576a5405d831c16bab51dcc77 (diff) | |
| download | bcm5719-llvm-591105c540fbdbbe41539ac0aa7c6eed393478ff.tar.gz bcm5719-llvm-591105c540fbdbbe41539ac0aa7c6eed393478ff.zip | |
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!! ;-)
llvm-svn: 78517
Diffstat (limited to 'llvm/tools/llvm-mc/AsmParser.cpp')
| -rw-r--r-- | llvm/tools/llvm-mc/AsmParser.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/tools/llvm-mc/AsmParser.cpp b/llvm/tools/llvm-mc/AsmParser.cpp index 29657de5d86..8f6583a5916 100644 --- a/llvm/tools/llvm-mc/AsmParser.cpp +++ b/llvm/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); |

