aboutsummaryrefslogtreecommitdiffstats
path: root/tools/llvm-mc/AsmParser.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-08 22:38:48 +0000
committerChris Lattner <sabre@nondot.org>2009-08-08 22:38:48 +0000
commitae37dfe9a34a5be05a5a6d78bf4ac665ec5fb1bf (patch)
tree233783290a6d11631596b59ac6d8298b5b9b5bf2 /tools/llvm-mc/AsmParser.cpp
parentb5f948cbb5694e348fcbe8511d09ee2dd3fd9845 (diff)
downloadexternal_llvm-ae37dfe9a34a5be05a5a6d78bf4ac665ec5fb1bf.zip
external_llvm-ae37dfe9a34a5be05a5a6d78bf4ac665ec5fb1bf.tar.gz
external_llvm-ae37dfe9a34a5be05a5a6d78bf4ac665ec5fb1bf.tar.bz2
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78509 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-mc/AsmParser.cpp')
-rw-r--r--tools/llvm-mc/AsmParser.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/llvm-mc/AsmParser.cpp b/tools/llvm-mc/AsmParser.cpp
index 4d6fac1..29657de 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 = 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);