13#ifndef LLVM_MC_MCSECTIONELF_H
14#define LLVM_MC_MCSECTIONELF_H
59 unsigned entrySize,
const MCSymbolELF *group,
bool IsComdat,
64 Type(type), Flags(flags), UniqueID(UniqueID), EntrySize(entrySize),
65 Group(group, IsComdat), LinkedToSym(LinkedToSym) {
67 "Group section without signature!");
68 if (Group.getPointer())
69 Group.getPointer()->setIsSignature();
78 bool isComdat()
const {
return Group.getInt(); }
84 return &LinkedToSym->getSection();
93 return std::make_pair(StartOffset, EndOffset);
assert(UImm &&(UImm !=~static_cast< T >(0)) &&"Invalid immediate!")
This file defines the PointerIntPair class.
const MCSection * getLinkedToSection() const
unsigned getFlags() const
unsigned getUniqueID() const
void setOffsets(uint64_t Start, uint64_t End)
friend class MCAsmInfoELF
void setFlags(unsigned F)
const MCSymbol * getLinkedToSymbol() const
std::pair< uint64_t, uint64_t > getOffsets() const
const MCSymbolELF * getGroup() const
unsigned getEntrySize() const
static constexpr unsigned NonUniqueID
MCSection(StringRef Name, bool IsText, bool IsBss, MCSymbol *Begin)
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
PointerIntPair - This class implements a pair of a pointer and small integer.
StringRef - Represent a constant reference to a string, i.e.
This is an optimization pass for GlobalISel generic memory operations.