summaryrefslogtreecommitdiff
path: root/tools/llvm-mc/AsmParser.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-01 18:25:49 +0000
committerChris Lattner <sabre@nondot.org>2009-08-01 18:25:49 +0000
commit4a7bc1e5aafbb543a9a535bce54fc62d18723b35 (patch)
tree950136749ff57f13b332aabbba572695d4dcc8e7 /tools/llvm-mc/AsmParser.cpp
parentf67e84edefe240bb1d30cfb63cf46f2d5631a072 (diff)
downloadllvm-4a7bc1e5aafbb543a9a535bce54fc62d18723b35.tar.gz
llvm-4a7bc1e5aafbb543a9a535bce54fc62d18723b35.tar.bz2
llvm-4a7bc1e5aafbb543a9a535bce54fc62d18723b35.tar.xz
All MCSections are now required to have a SectionKind.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77787 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 19eaf35327..46103ad53b 100644
--- a/tools/llvm-mc/AsmParser.cpp
+++ b/tools/llvm-mc/AsmParser.cpp
@@ -662,7 +662,7 @@ bool AsmParser::ParseDirectiveDarwinSection() {
// FIXME: Arch specific.
MCSection *S = Ctx.GetSection(Section);
if (S == 0)
- S = MCSection::Create(Section, Ctx);
+ S = MCSection::Create(Section, SectionKind(), Ctx);
Out.SwitchSection(S);
return false;
@@ -683,7 +683,7 @@ bool AsmParser::ParseDirectiveSectionSwitch(const char *Section,
// FIXME: Arch specific.
MCSection *S = Ctx.GetSection(Section);
if (S == 0)
- S = MCSection::Create(Section, Ctx);
+ S = MCSection::Create(Section, SectionKind(), Ctx);
Out.SwitchSection(S);
return false;
@@ -1074,7 +1074,7 @@ bool AsmParser::ParseDirectiveDarwinZerofill() {
// FIXME: Arch specific.
MCSection *S = Ctx.GetSection(Section);
if (S == 0)
- S = MCSection::Create(Section, Ctx);
+ S = MCSection::Create(Section, SectionKind(), Ctx);
// Create the zerofill section but no symbol
Out.EmitZerofill(S);
@@ -1134,7 +1134,7 @@ bool AsmParser::ParseDirectiveDarwinZerofill() {
// FIXME: Arch specific.
MCSection *S = Ctx.GetSection(Section);
if (S == 0)
- S = MCSection::Create(Section, Ctx);
+ S = MCSection::Create(Section, SectionKind(), Ctx);
// Create the zerofill Symbol with Size and Pow2Alignment
Out.EmitZerofill(S, Sym, Size, Pow2Alignment);