diff options
author | Chris Lattner <sabre@nondot.org> | 2009-08-13 00:37:15 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-08-13 00:37:15 +0000 |
commit | 38cff389af1d78bd80df0479ef258493e0c5897e (patch) | |
tree | 7bbbecb058efb77eaf4ab59aac1f6c8a8e168e72 /include/llvm/MC/MCSection.h | |
parent | f991ecf7231436437f6de1a22e93d0a1b380e078 (diff) | |
download | external_llvm-38cff389af1d78bd80df0479ef258493e0c5897e.zip external_llvm-38cff389af1d78bd80df0479ef258493e0c5897e.tar.gz external_llvm-38cff389af1d78bd80df0479ef258493e0c5897e.tar.bz2 |
sink uniquing of sections out of MCContext into the ELF and PECOFF TLOF implementations.
MCContext no longer maintains a string -> section map.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78874 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCSection.h')
-rw-r--r-- | include/llvm/MC/MCSection.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/llvm/MC/MCSection.h b/include/llvm/MC/MCSection.h index aa40386..b33e8c9 100644 --- a/include/llvm/MC/MCSection.h +++ b/include/llvm/MC/MCSection.h @@ -52,8 +52,9 @@ namespace llvm { /// of a syntactic one. bool IsDirective; - MCSectionELF(const StringRef &Name, bool IsDirective, SectionKind K, - MCContext &Ctx); + MCSectionELF(const StringRef &name, bool isDirective, SectionKind K) + : MCSection(K), Name(name), IsDirective(isDirective) { + } public: static MCSectionELF *Create(const StringRef &Name, bool IsDirective, @@ -77,8 +78,9 @@ namespace llvm { /// of a syntactic one. bool IsDirective; - MCSectionCOFF(const StringRef &Name, bool IsDirective, SectionKind K, - MCContext &Ctx); + MCSectionCOFF(const StringRef &name, bool isDirective, SectionKind K) + : MCSection(K), Name(name), IsDirective(isDirective) { + } public: static MCSectionCOFF *Create(const StringRef &Name, bool IsDirective, |