aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/MC/MCSectionELF.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/MC/MCSectionELF.h')
-rw-r--r--include/llvm/MC/MCSectionELF.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/include/llvm/MC/MCSectionELF.h b/include/llvm/MC/MCSectionELF.h
index 31e1e66..8d23b28 100644
--- a/include/llvm/MC/MCSectionELF.h
+++ b/include/llvm/MC/MCSectionELF.h
@@ -30,28 +30,24 @@ class MCSectionELF : public MCSection {
/// below.
unsigned Flags;
- /// HasCrazyBSS - PPC/Linux doesn't support the .bss directive, it
- /// needs .section .bss. TODO: replace this with a TAI method.
- bool HasCrazyBSS;
-
/// IsExplicit - Indicates that this section comes from globals with an
/// explicit section specfied.
bool IsExplicit;
MCSectionELF(const StringRef &Section, unsigned T, unsigned F,
- SectionKind K, bool hasCrazyBSS, bool isExplicit)
+ SectionKind K, bool isExplicit)
: MCSection(K), SectionName(Section.str()), Type(T), Flags(F),
- HasCrazyBSS(hasCrazyBSS), IsExplicit(isExplicit) {}
+ IsExplicit(isExplicit) {}
public:
static MCSectionELF *Create(const StringRef &Section, unsigned Type,
- unsigned Flags, SectionKind K,
- bool hasCrazyBSS, bool isExplicit,
+ unsigned Flags, SectionKind K, bool isExplicit,
MCContext &Ctx);
/// ShouldOmitSectionDirective - Decides whether a '.section' directive
/// should be printed before the section name
- bool ShouldOmitSectionDirective(const char *Name) const;
+ bool ShouldOmitSectionDirective(const char *Name,
+ const TargetAsmInfo &TAI) const;
/// ShouldPrintSectionType - Only prints the section type if supported
bool ShouldPrintSectionType(unsigned Ty) const;