44 if (
const auto *
Section = dyn_cast<MCSectionCOFF>(FunctionSection)) {
46 if (CodeSecName ==
".text")
50 CodeSecName = CodeSecName.
substr(6);
53 (SecName +
Twine(
'$') + CodeSecName).str(),
Instances of this class represent a uniqued identifier for a section in the current translation unit...
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
static SectionKind getDataRel()
StringRef substr(size_t Start, size_t N=npos) const
Return a reference to the substring from [Start, Start + N).
MCSectionCOFF - This represents a section on Windows.
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
Context object for machine code objects.
bool isInSection() const
isInSection - Check if this symbol is defined in some section (i.e., it is defined but not absolute)...
MCSection * getPDataSection() const
MCSection * getXDataSection() const
MCSymbol * getCOMDATSymbol() const
unsigned getCharacteristics() const
bool startswith(StringRef Prefix) const
Check if this string starts with the given Prefix.
MCSection & getSection() const
Get the section associated with a defined, non-absolute symbol.
MCSectionCOFF * getAssociativeCOFFSection(MCSectionCOFF *Sec, const MCSymbol *KeySym)
Gets or creates a section equivalent to Sec that is associated with the section containing KeySym...
static MCSection * getPDataSection(const MCSymbol *Function, MCContext &Context)
static MCSection * getXDataSection(const MCSymbol *Function, MCContext &Context)
MCSectionCOFF * getCOFFSection(StringRef Section, unsigned Characteristics, SectionKind Kind, StringRef COMDATSymName, int Selection, const char *BeginSymName=nullptr)
static MCSection * getUnwindInfoSection(StringRef SecName, MCSectionCOFF *UnwindSec, const MCSymbol *Function, MCContext &Context)
We can't have one section for all .pdata or .xdata because the Microsoft linker seems to want all cod...
const MCObjectFileInfo * getObjectFileInfo() const
StringRef - Represent a constant reference to a string, i.e.