}
auto NameIter = UsedNames.insert(std::make_pair(Name, true)).first;
- Sym = new (*this) MCSymbol(NameIter->getKey(), /*isTemporary*/ false,
- MAI->noSymbolNameQuoting());
+ Sym = new (*this) MCSymbol(NameIter->getKey(), /*isTemporary*/ false);
if (!OldSym)
OldSym = Sym;
// Ok, we found a name. Have the MCSymbol object itself refer to the copy
// of the string that is embedded in the UsedNames entry.
MCSymbol *Result =
- new (*this) MCSymbol(NameEntry.first->getKey(), IsTemporary,
- MAI->noSymbolNameQuoting());
+ new (*this) MCSymbol(NameEntry.first->getKey(), IsTemporary);
return Result;
}
assert(IsTemporary && "Cannot rename non-temporary symbols");
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;
}