[llvm-commits] [llvm] r78509 - in /llvm/trunk/tools/llvm-mc: AsmParser.cpp llvm-mc.cpp
Chris Lattner
sabre at nondot.org
Sat Aug 8 15:38:49 PDT 2009
Author: lattner
Date: Sat Aug 8 17:38:48 2009
New Revision: 78509
URL: http://llvm.org/viewvc/llvm-project?rev=78509&view=rev
Log:
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.
Modified:
llvm/trunk/tools/llvm-mc/AsmParser.cpp
llvm/trunk/tools/llvm-mc/llvm-mc.cpp
Modified: llvm/trunk/tools/llvm-mc/AsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-mc/AsmParser.cpp?rev=78509&r1=78508&r2=78509&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-mc/AsmParser.cpp (original)
+++ llvm/trunk/tools/llvm-mc/AsmParser.cpp Sat Aug 8 17:38:48 2009
@@ -706,7 +706,7 @@
// 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 @@
// 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 @@
// 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 @@
// 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);
Modified: llvm/trunk/tools/llvm-mc/llvm-mc.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-mc/llvm-mc.cpp?rev=78509&r1=78508&r2=78509&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-mc/llvm-mc.cpp (original)
+++ llvm/trunk/tools/llvm-mc/llvm-mc.cpp Sat Aug 8 17:38:48 2009
@@ -186,7 +186,7 @@
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(),
More information about the llvm-commits
mailing list