10 #ifndef LLVM_MC_MCASMLAYOUT_H 11 #define LLVM_MC_MCASMLAYOUT_H 45 bool isFragmentValid(
const MCFragment *F)
const;
Instances of this class represent a uniqued identifier for a section in the current translation unit...
This class represents lattice values for constants.
uint64_t getSectionAddressSize(const MCSection *Sec) const
Get the address space size of the given section, as it effects layout.
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
const llvm::SmallVectorImpl< MCSection * > & getSectionOrder() const
Encapsulates the layout of an assembly file at a particular point in time.
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
MCAssembler & getAssembler() const
Get the assembler object this is a layout for.
void layoutFragment(MCFragment *Fragment)
Perform layout for a single fragment, assuming that the previous fragment has already been laid out c...
MCAsmLayout(MCAssembler &Assembler)
void invalidateFragmentsFrom(MCFragment *F)
Invalidate the fragments starting with F because it has been resized.
bool getSymbolOffset(const MCSymbol &S, uint64_t &Val) const
Get the offset of the given symbol, as computed in the current layout.
llvm::SmallVectorImpl< MCSection * > & getSectionOrder()
uint64_t getFragmentOffset(const MCFragment *F) const
Get the offset of the given fragment inside its containing section.
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small...
uint64_t getSectionFileSize(const MCSection *Sec) const
Get the data size of the given section, as emitted to the object file.
const MCSymbol * getBaseSymbol(const MCSymbol &Symbol) const
If this symbol is equivalent to A + Constant, return A.