Changeset View
Changeset View
Standalone View
Standalone View
llvm/lib/MC/MCContext.cpp
Show First 20 Lines • Show All 352 Lines • ▼ Show 20 Lines | MCSectionELF *MCContext::getELFNamedSection(const Twine &Prefix, | ||||
const Twine &Suffix, unsigned Type, | const Twine &Suffix, unsigned Type, | ||||
unsigned Flags, | unsigned Flags, | ||||
unsigned EntrySize) { | unsigned EntrySize) { | ||||
return getELFSection(Prefix + "." + Suffix, Type, Flags, EntrySize, Suffix); | return getELFSection(Prefix + "." + Suffix, Type, Flags, EntrySize, Suffix); | ||||
} | } | ||||
MCSectionELF *MCContext::getELFSection(const Twine &Section, unsigned Type, | MCSectionELF *MCContext::getELFSection(const Twine &Section, unsigned Type, | ||||
unsigned Flags, unsigned EntrySize, | unsigned Flags, unsigned EntrySize, | ||||
const Twine &Group, unsigned UniqueID) { | const Twine &Group, unsigned UniqueID, | ||||
const MCSectionELF *Associated) { | |||||
MCSymbolELF *GroupSym = nullptr; | MCSymbolELF *GroupSym = nullptr; | ||||
if (!Group.isTriviallyEmpty() && !Group.str().empty()) | if (!Group.isTriviallyEmpty() && !Group.str().empty()) | ||||
GroupSym = cast<MCSymbolELF>(getOrCreateSymbol(Group)); | GroupSym = cast<MCSymbolELF>(getOrCreateSymbol(Group)); | ||||
return getELFSection(Section, Type, Flags, EntrySize, GroupSym, UniqueID, | return getELFSection(Section, Type, Flags, EntrySize, GroupSym, UniqueID, | ||||
nullptr); | Associated); | ||||
} | } | ||||
MCSectionELF *MCContext::getELFSection(const Twine &Section, unsigned Type, | MCSectionELF *MCContext::getELFSection(const Twine &Section, unsigned Type, | ||||
unsigned Flags, unsigned EntrySize, | unsigned Flags, unsigned EntrySize, | ||||
const MCSymbolELF *GroupSym, | const MCSymbolELF *GroupSym, | ||||
unsigned UniqueID, | unsigned UniqueID, | ||||
const MCSectionELF *Associated) { | const MCSectionELF *Associated) { | ||||
StringRef Group = ""; | StringRef Group = ""; | ||||
▲ Show 20 Lines • Show All 166 Lines • Show Last 20 Lines |