diff options
author | Chris Lattner <sabre@nondot.org> | 2010-05-07 17:17:41 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-05-07 17:17:41 +0000 |
commit | eb40a0fd98c44ecc6360e7fab33cf9e9911bed4f (patch) | |
tree | 8be5bd0c32a88edfdcd71628360aee7e01146bde /include/llvm/MC/MCSection.h | |
parent | 5fa680d3970b11cd7f6be8663688dc50a32a7c9e (diff) |
switch MCSectionCOFF from a syntactic to semantic representation,
patch by Peter Housel!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103267 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCSection.h')
-rw-r--r-- | include/llvm/MC/MCSection.h | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/include/llvm/MC/MCSection.h b/include/llvm/MC/MCSection.h index e9c19fce20..1e2ef1e132 100644 --- a/include/llvm/MC/MCSection.h +++ b/include/llvm/MC/MCSection.h @@ -48,32 +48,6 @@ namespace llvm { return false; } }; - - class MCSectionCOFF : public MCSection { - // The memory for this string is stored in the same MCContext as *this. - StringRef Name; - - /// IsDirective - This is true if the section name is a directive, not - /// something that should be printed with ".section". - /// - /// FIXME: This is a hack. Switch to a semantic view of the section instead - /// of a syntactic one. - bool IsDirective; - - MCSectionCOFF(StringRef name, bool isDirective, SectionKind K) - : MCSection(K), Name(name), IsDirective(isDirective) { - } - public: - - static MCSectionCOFF *Create(StringRef Name, bool IsDirective, - SectionKind K, MCContext &Ctx); - - StringRef getName() const { return Name; } - bool isDirective() const { return IsDirective; } - - virtual void PrintSwitchToSection(const MCAsmInfo &MAI, - raw_ostream &OS) const; - }; } // end namespace llvm |