aboutsummaryrefslogtreecommitdiff
path: root/tools/llvm-mc
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-01 21:14:30 +0000
committerChris Lattner <sabre@nondot.org>2009-08-01 21:14:30 +0000
commit5d6554255b5a7b71213129fafb7b6e6b5344acdf (patch)
tree3a5d0fc6e0fc862feb4e7864909feadd30e9e0b8 /tools/llvm-mc
parent968ff1196768c0b6dbcc5508025a2923bfa73fab (diff)
update for API change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77804 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-mc')
-rw-r--r--tools/llvm-mc/AsmParser.cpp8
-rw-r--r--tools/llvm-mc/llvm-mc.cpp1
2 files changed, 5 insertions, 4 deletions
diff --git a/tools/llvm-mc/AsmParser.cpp b/tools/llvm-mc/AsmParser.cpp
index 46103ad53b..5bb1ae44df 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, SectionKind(), Ctx);
+ S = MCSection::Create(Section, false, 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, SectionKind(), Ctx);
+ S = MCSection::Create(Section, false, 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, SectionKind(), Ctx);
+ S = MCSection::Create(Section, false, 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, SectionKind(), Ctx);
+ S = MCSection::Create(Section, false, SectionKind(), Ctx);
// Create the zerofill Symbol with Size and Pow2Alignment
Out.EmitZerofill(S, Sym, Size, Pow2Alignment);
diff --git a/tools/llvm-mc/llvm-mc.cpp b/tools/llvm-mc/llvm-mc.cpp
index 745a64d62a..1d79752196 100644
--- a/tools/llvm-mc/llvm-mc.cpp
+++ b/tools/llvm-mc/llvm-mc.cpp
@@ -192,6 +192,7 @@ static int AssembleInput(const char *ProgName) {
// FIXME: Target hook & command line option for initial section.
Str.get()->SwitchSection(MCSection::Create("__TEXT,__text,"
"regular,pure_instructions",
+ false,
SectionKind::get(SectionKind::Text),
Ctx));