summaryrefslogtreecommitdiff
path: root/lib/MC/MCSection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/MC/MCSection.cpp')
-rw-r--r--lib/MC/MCSection.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/MC/MCSection.cpp b/lib/MC/MCSection.cpp
index 006546febb..84487b24be 100644
--- a/lib/MC/MCSection.cpp
+++ b/lib/MC/MCSection.cpp
@@ -14,15 +14,16 @@ using namespace llvm;
MCSection::~MCSection() {
}
-MCSection::MCSection(const StringRef &N, SectionKind K, MCContext &Ctx)
- : Name(N), Kind(K) {
+MCSection::MCSection(const StringRef &N, bool isDirective, SectionKind K,
+ MCContext &Ctx)
+ : Name(N), IsDirective(isDirective), Kind(K) {
MCSection *&Entry = Ctx.Sections[Name];
assert(Entry == 0 && "Multiple sections with the same name created");
Entry = this;
}
-MCSection *MCSection::Create(const StringRef &Name, SectionKind K,
- MCContext &Ctx) {
- return new (Ctx) MCSection(Name, K, Ctx);
+MCSection *MCSection::Create(const StringRef &Name, bool IsDirective,
+ SectionKind K, MCContext &Ctx) {
+ return new (Ctx) MCSection(Name, IsDirective, K, Ctx);
}