MCSection(const MCSection &) = delete;
void operator=(const MCSection &) = delete;
- MCSymbol *Begin;
+ mutable MCSymbol *Begin;
mutable MCSymbol *End;
protected:
SectionVariant getVariant() const { return Variant; }
MCSymbol *getBeginSymbol() const { return Begin; }
+ void setBeginSymbol(MCSymbol *Sym) const {
+ assert(!Begin);
+ Begin = Sym;
+ }
MCSymbol *getEndSymbol(MCContext &Ctx) const;
bool hasEnded() const;