summaryrefslogtreecommitdiff
path: root/include/llvm/MC/MCSectionELF.h
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2010-11-11 18:13:52 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2010-11-11 18:13:52 +0000
commit2ff9e83a826c1c2ee0f1c6072d3d97d5b10678ee (patch)
tree7b0da82eca52b236bf7259f9d451dde58a1f7689 /include/llvm/MC/MCSectionELF.h
parent56653f0df85f8e4ee60941a6ca31c17ca6f936ff (diff)
downloadllvm-2ff9e83a826c1c2ee0f1c6072d3d97d5b10678ee.tar.gz
llvm-2ff9e83a826c1c2ee0f1c6072d3d97d5b10678ee.tar.bz2
llvm-2ff9e83a826c1c2ee0f1c6072d3d97d5b10678ee.tar.xz
Initial comdat implementation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118805 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCSectionELF.h')
-rw-r--r--include/llvm/MC/MCSectionELF.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/llvm/MC/MCSectionELF.h b/include/llvm/MC/MCSectionELF.h
index bf07b99b21..5af538557e 100644
--- a/include/llvm/MC/MCSectionELF.h
+++ b/include/llvm/MC/MCSectionELF.h
@@ -18,6 +18,8 @@
namespace llvm {
+class MCSymbol;
+
/// MCSectionELF - This represents a section on linux, lots of unix variants
/// and some bare metal systems.
class MCSectionELF : public MCSection {
@@ -37,12 +39,14 @@ class MCSectionELF : public MCSection {
/// section does not contain fixed-sized entries 'EntrySize' will be 0.
unsigned EntrySize;
+ const MCSymbol *Group;
+
private:
friend class MCContext;
MCSectionELF(StringRef Section, unsigned type, unsigned flags,
- SectionKind K, unsigned entrySize)
+ SectionKind K, unsigned entrySize, const MCSymbol *group)
: MCSection(SV_ELF, K), SectionName(Section), Type(type), Flags(flags),
- EntrySize(entrySize) {}
+ EntrySize(entrySize), Group(group) {}
~MCSectionELF();
public:
@@ -179,6 +183,7 @@ public:
unsigned getType() const { return Type; }
unsigned getFlags() const { return Flags; }
unsigned getEntrySize() const { return EntrySize; }
+ const MCSymbol *getGroup() const { return Group; }
void PrintSwitchToSection(const MCAsmInfo &MAI,
raw_ostream &OS) const;