Map directly from signature symbol to group index. NFC.
[oota-llvm.git] / lib / MC / MCContext.cpp
index 5f8e3c11de3f8a67153f462ea9dbac7a5d83a1d3..fd0422daf2935063f7a49bb2c879c5246b3f0680 100644 (file)
@@ -337,10 +337,10 @@ const MCSectionELF *MCContext::getELFSection(StringRef Section, unsigned Type,
   return Result;
 }
 
-const MCSectionELF *MCContext::CreateELFGroupSection() {
+const MCSectionELF *MCContext::createELFGroupSection(const MCSymbol *Group) {
   MCSectionELF *Result = new (*this)
       MCSectionELF(".group", ELF::SHT_GROUP, 0, SectionKind::getReadOnly(), 4,
-                   nullptr, ~0, nullptr, nullptr);
+                   Group, ~0, nullptr, nullptr);
   return Result;
 }