All MCSections are now required to have a SectionKind.
[oota-llvm.git] / lib / Target / TargetLoweringObjectFile.cpp
index 9ba12bb2184f402c8da157b5a1571fcaea55abd0..025e3f21b7c7f140a5cc7370823aa9098255b789 100644 (file)
@@ -249,7 +249,7 @@ getOrCreateSection(const char *Name, bool isDirective,
   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);
 }