llvm.org GIT mirror llvm / 4d2419d
tidy git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93352 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 10 years ago
1 changed file(s) with 3 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
77 //===----------------------------------------------------------------------===//
88
99 #include "llvm/MC/MCSectionELF.h"
10 #include "llvm/MC/MCAsmInfo.h"
1011 #include "llvm/MC/MCContext.h"
12 #include "llvm/MC/MCSymbol.h"
1113 #include "llvm/Support/raw_ostream.h"
12 #include "llvm/MC/MCAsmInfo.h"
13
1414 using namespace llvm;
1515
1616 MCSectionELF *MCSectionELF::
2222 // ShouldOmitSectionDirective - Decides whether a '.section' directive
2323 // should be printed before the section name
2424 bool MCSectionELF::ShouldOmitSectionDirective(const char *Name,
25 const MCAsmInfo &MAI) const {
25 const MCAsmInfo &MAI) const {
2626
2727 // FIXME: Does .section .bss/.data/.text work everywhere??
2828 if (strcmp(Name, ".text") == 0 ||
3636
3737 // ShouldPrintSectionType - Only prints the section type if supported
3838 bool MCSectionELF::ShouldPrintSectionType(unsigned Ty) const {
39
4039 if (IsExplicit && !(Ty == SHT_NOBITS || Ty == SHT_PROGBITS))
4140 return false;
4241