From 95bad379a9937d290d9f31f23fbc46b9949e02a3 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 1 Aug 2009 18:25:49 +0000 Subject: All MCSections are now required to have a SectionKind. llvm-svn: 77787 --- llvm/lib/Target/TargetLoweringObjectFile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Target/TargetLoweringObjectFile.cpp') 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 @@ 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); } -- cgit v1.1