diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/MC/MCContext.h | 2 | ||||
-rw-r--r-- | include/llvm/MC/MCSectionELF.h | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/include/llvm/MC/MCContext.h b/include/llvm/MC/MCContext.h index 07e0ab62942..98dd127c0c0 100644 --- a/include/llvm/MC/MCContext.h +++ b/include/llvm/MC/MCContext.h @@ -385,6 +385,8 @@ namespace llvm { const MCSymbolELF *Group, const MCSectionELF *Associated); + void renameELFSection(MCSectionELF *Section, StringRef Name); + MCSectionELF *createELFGroupSection(const MCSymbolELF *Group); MCSectionCOFF *getCOFFSection(StringRef Section, unsigned Characteristics, diff --git a/include/llvm/MC/MCSectionELF.h b/include/llvm/MC/MCSectionELF.h index a4a20a31b09..b3bb3ad4e02 100644 --- a/include/llvm/MC/MCSectionELF.h +++ b/include/llvm/MC/MCSectionELF.h @@ -62,6 +62,8 @@ private: Group->setIsSignature(); } + void setSectionName(StringRef Name) { SectionName = Name; } + public: ~MCSectionELF(); @@ -73,7 +75,6 @@ public: unsigned getType() const { return Type; } unsigned getFlags() const { return Flags; } unsigned getEntrySize() const { return EntrySize; } - void setFlags(unsigned F) { Flags = F; } const MCSymbolELF *getGroup() const { return Group; } void PrintSwitchToSection(const MCAsmInfo &MAI, raw_ostream &OS, |