diff options
author | Chris Lattner <sabre@nondot.org> | 2010-01-13 21:21:29 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-01-13 21:21:29 +0000 |
commit | b9d1f5a0069f42197319ac944b4bb590988055dd (patch) | |
tree | abb0ec1510a34ce2b4ab839378c0c6977d25ff19 /llvm/lib/MC/MCSectionELF.cpp | |
parent | 51d6cc4bdb2ed1c55dbcb90f6334dacaf37af99b (diff) | |
download | llvm-b9d1f5a0069f42197319ac944b4bb590988055dd.zip llvm-b9d1f5a0069f42197319ac944b4bb590988055dd.tar.gz llvm-b9d1f5a0069f42197319ac944b4bb590988055dd.tar.bz2 |
tidy
llvm-svn: 93352
Diffstat (limited to 'llvm/lib/MC/MCSectionELF.cpp')
-rw-r--r-- | llvm/lib/MC/MCSectionELF.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/MC/MCSectionELF.cpp b/llvm/lib/MC/MCSectionELF.cpp index c6812ed..4d520ec 100644 --- a/llvm/lib/MC/MCSectionELF.cpp +++ b/llvm/lib/MC/MCSectionELF.cpp @@ -8,10 +8,10 @@ //===----------------------------------------------------------------------===// #include "llvm/MC/MCSectionELF.h" +#include "llvm/MC/MCAsmInfo.h" #include "llvm/MC/MCContext.h" +#include "llvm/MC/MCSymbol.h" #include "llvm/Support/raw_ostream.h" -#include "llvm/MC/MCAsmInfo.h" - using namespace llvm; MCSectionELF *MCSectionELF:: @@ -23,7 +23,7 @@ Create(StringRef Section, unsigned Type, unsigned Flags, // ShouldOmitSectionDirective - Decides whether a '.section' directive // should be printed before the section name bool MCSectionELF::ShouldOmitSectionDirective(const char *Name, - const MCAsmInfo &MAI) const { + const MCAsmInfo &MAI) const { // FIXME: Does .section .bss/.data/.text work everywhere?? if (strcmp(Name, ".text") == 0 || @@ -37,7 +37,6 @@ bool MCSectionELF::ShouldOmitSectionDirective(const char *Name, // ShouldPrintSectionType - Only prints the section type if supported bool MCSectionELF::ShouldPrintSectionType(unsigned Ty) const { - if (IsExplicit && !(Ty == SHT_NOBITS || Ty == SHT_PROGBITS)) return false; |