diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-08-08 22:38:48 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-08-08 22:38:48 +0000 |
| commit | 089b7de20dac7361b80f75e82961e053bdc5d7ff (patch) | |
| tree | 60ffa39acaa9251263043f699ca3d23d2cb54a47 /llvm/tools/llvm-mc/AsmParser.cpp | |
| parent | 7dfa9f2e563f49d8aed01bc7ae36584af97e9bdc (diff) | |
| download | bcm5719-llvm-089b7de20dac7361b80f75e82961e053bdc5d7ff.tar.gz bcm5719-llvm-089b7de20dac7361b80f75e82961e053bdc5d7ff.zip | |
switch this to create coff sections for now, it doesn't really matter for
llvm-mc's purpose yet and we'll want to switch to creating semantic sections
at some point.
llvm-svn: 78509
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 4d6fac1f3cc..29657de5d86 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 = MCSection::Create(Section, false, SectionKind(), Ctx); + S = MCSectionCOFF::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 = MCSection::Create(Section, false, SectionKind(), Ctx); + S = MCSectionCOFF::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 = MCSection::Create(Section, false, SectionKind(), Ctx); + S = MCSectionCOFF::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 = MCSection::Create(Section, false, SectionKind(), Ctx); + S = MCSectionCOFF::Create(Section, false, SectionKind(), Ctx); // Create the zerofill Symbol with Size and Pow2Alignment Out.EmitZerofill(S, Sym, Size, Pow2Alignment); |

