Changeset View
Changeset View
Standalone View
Standalone View
include/llvm/MC/MCContext.h
Show First 20 Lines • Show All 235 Lines • ▼ Show 20 Lines | private: | ||||
MCSymbol *getOrCreateDirectionalLocalSymbol(unsigned LocalLabelVal, | MCSymbol *getOrCreateDirectionalLocalSymbol(unsigned LocalLabelVal, | ||||
unsigned Instance); | unsigned Instance); | ||||
MCSectionELF *createELFSectionImpl(StringRef Section, unsigned Type, | MCSectionELF *createELFSectionImpl(StringRef Section, unsigned Type, | ||||
unsigned Flags, SectionKind K, | unsigned Flags, SectionKind K, | ||||
unsigned EntrySize, | unsigned EntrySize, | ||||
const MCSymbolELF *Group, | const MCSymbolELF *Group, | ||||
unsigned UniqueID, | unsigned UniqueID, | ||||
const MCSectionELF *Associated); | const MCSymbolELF *Associated); | ||||
public: | public: | ||||
explicit MCContext(const MCAsmInfo *MAI, const MCRegisterInfo *MRI, | explicit MCContext(const MCAsmInfo *MAI, const MCRegisterInfo *MRI, | ||||
const MCObjectFileInfo *MOFI, | const MCObjectFileInfo *MOFI, | ||||
const SourceMgr *Mgr = nullptr, bool DoAutoReset = true); | const SourceMgr *Mgr = nullptr, bool DoAutoReset = true); | ||||
MCContext(const MCContext &) = delete; | MCContext(const MCContext &) = delete; | ||||
MCContext &operator=(const MCContext &) = delete; | MCContext &operator=(const MCContext &) = delete; | ||||
~MCContext(); | ~MCContext(); | ||||
▲ Show 20 Lines • Show All 114 Lines • ▼ Show 20 Lines | MCSectionELF *getELFSection(const Twine &Section, unsigned Type, | ||||
const Twine &Group, unsigned UniqueID) { | const Twine &Group, unsigned UniqueID) { | ||||
return getELFSection(Section, Type, Flags, EntrySize, Group, UniqueID, | return getELFSection(Section, Type, Flags, EntrySize, Group, UniqueID, | ||||
nullptr); | nullptr); | ||||
} | } | ||||
MCSectionELF *getELFSection(const Twine &Section, unsigned Type, | MCSectionELF *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); | const MCSymbolELF *Associated); | ||||
MCSectionELF *getELFSection(const Twine &Section, unsigned Type, | MCSectionELF *getELFSection(const Twine &Section, unsigned Type, | ||||
unsigned Flags, unsigned EntrySize, | unsigned Flags, unsigned EntrySize, | ||||
const MCSymbolELF *Group, unsigned UniqueID, | const MCSymbolELF *Group, unsigned UniqueID, | ||||
const MCSectionELF *Associated); | const MCSymbolELF *Associated); | ||||
/// Get a section with the provided group identifier. This section is | /// Get a section with the provided group identifier. This section is | ||||
/// named by concatenating \p Prefix with '.' then \p Suffix. The \p Type | /// named by concatenating \p Prefix with '.' then \p Suffix. The \p Type | ||||
/// describes the type of the section and \p Flags are used to further | /// describes the type of the section and \p Flags are used to further | ||||
/// configure this named section. | /// configure this named section. | ||||
MCSectionELF *getELFNamedSection(const Twine &Prefix, const Twine &Suffix, | MCSectionELF *getELFNamedSection(const Twine &Prefix, const Twine &Suffix, | ||||
unsigned Type, unsigned Flags, | unsigned Type, unsigned Flags, | ||||
unsigned EntrySize = 0); | unsigned EntrySize = 0); | ||||
MCSectionELF *createELFRelSection(const Twine &Name, unsigned Type, | MCSectionELF *createELFRelSection(const Twine &Name, unsigned Type, | ||||
unsigned Flags, unsigned EntrySize, | unsigned Flags, unsigned EntrySize, | ||||
const MCSymbolELF *Group, | const MCSymbolELF *Group, | ||||
const MCSectionELF *Associated); | const MCSectionELF *RelInfoSection); | ||||
void renameELFSection(MCSectionELF *Section, StringRef Name); | void renameELFSection(MCSectionELF *Section, StringRef Name); | ||||
MCSectionELF *createELFGroupSection(const MCSymbolELF *Group); | MCSectionELF *createELFGroupSection(const MCSymbolELF *Group); | ||||
MCSectionCOFF *getCOFFSection(StringRef Section, unsigned Characteristics, | MCSectionCOFF *getCOFFSection(StringRef Section, unsigned Characteristics, | ||||
SectionKind Kind, StringRef COMDATSymName, | SectionKind Kind, StringRef COMDATSymName, | ||||
int Selection, | int Selection, | ||||
▲ Show 20 Lines • Show All 249 Lines • Show Last 20 Lines |