diff options
author | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2009-08-13 23:30:21 +0000 |
---|---|---|
committer | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2009-08-13 23:30:21 +0000 |
commit | fdf229eda95a542fc34d5182e1a91a22789ba122 (patch) | |
tree | 08f88c07f62f402320663b559c9f558a75849877 /include/llvm/MC/MCSectionELF.h | |
parent | 0e275dc53880a7f14f8b8c83cc6e0290a215492d (diff) | |
download | external_llvm-fdf229eda95a542fc34d5182e1a91a22789ba122.zip external_llvm-fdf229eda95a542fc34d5182e1a91a22789ba122.tar.gz external_llvm-fdf229eda95a542fc34d5182e1a91a22789ba122.tar.bz2 |
Remove HasCrazyBSS and add a flag in TAI to indicate that '.section'
must be emitted for PowerPC-Linux '.bss' section
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78958 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCSectionELF.h')
-rw-r--r-- | include/llvm/MC/MCSectionELF.h | 14 |
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; |