switch this to create coff sections for now, it doesn't really matter for
authorChris Lattner <sabre@nondot.org>
Sat, 8 Aug 2009 22:38:48 +0000 (22:38 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 8 Aug 2009 22:38:48 +0000 (22:38 +0000)
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

tools/llvm-mc/AsmParser.cpp
tools/llvm-mc/llvm-mc.cpp

index 4d6fac1f3ccc36735d22c0304ca582aed0b7d46a..29657de5d86c5ff6d02d709875eede9a9d50aba0 100644 (file)
@@ -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);
index 7129dda937956060edda1bc551d3621db6b5ab00..5c24a8d4ad4025b6a650711b71d7ff786337c18d 100644 (file)
@@ -186,7 +186,7 @@ static int AssembleInput(const char *ProgName) {
   OwningPtr<MCStreamer> Str(createAsmStreamer(Ctx, outs()));
 
   // FIXME: Target hook & command line option for initial section.
-  Str.get()->SwitchSection(MCSection::Create("__TEXT,__text,"
+  Str.get()->SwitchSection(MCSectionCOFF::Create("__TEXT,__text,"
                                              "regular,pure_instructions",
                                              false,
                                             SectionKind::getText(),