All MCSections are now required to have a SectionKind.
llvm-svn: 77787
diff --git a/llvm/lib/Target/TargetLoweringObjectFile.cpp b/llvm/lib/Target/TargetLoweringObjectFile.cpp
index 9ba12bb2..025e3f2 100644
--- a/llvm/lib/Target/TargetLoweringObjectFile.cpp
+++ b/llvm/lib/Target/TargetLoweringObjectFile.cpp
@@ -249,7 +249,7 @@
if (MCSection *S = Ctx->GetSection(Name))
return S;
SectionKind K = SectionKind::get(Kind, false /*weak*/, !isDirective);
- return MCSectionWithKind::Create(Name, K, *Ctx);
+ return MCSection::Create(Name, K, *Ctx);
}