mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 21:24:00 +00:00
tidy
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93352 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -8,10 +8,10 @@
|
|||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
#include "llvm/MC/MCSectionELF.h"
|
#include "llvm/MC/MCSectionELF.h"
|
||||||
#include "llvm/MC/MCContext.h"
|
|
||||||
#include "llvm/Support/raw_ostream.h"
|
|
||||||
#include "llvm/MC/MCAsmInfo.h"
|
#include "llvm/MC/MCAsmInfo.h"
|
||||||
|
#include "llvm/MC/MCContext.h"
|
||||||
|
#include "llvm/MC/MCSymbol.h"
|
||||||
|
#include "llvm/Support/raw_ostream.h"
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
MCSectionELF *MCSectionELF::
|
MCSectionELF *MCSectionELF::
|
||||||
@ -23,7 +23,7 @@ Create(StringRef Section, unsigned Type, unsigned Flags,
|
|||||||
// ShouldOmitSectionDirective - Decides whether a '.section' directive
|
// ShouldOmitSectionDirective - Decides whether a '.section' directive
|
||||||
// should be printed before the section name
|
// should be printed before the section name
|
||||||
bool MCSectionELF::ShouldOmitSectionDirective(const char *Name,
|
bool MCSectionELF::ShouldOmitSectionDirective(const char *Name,
|
||||||
const MCAsmInfo &MAI) const {
|
const MCAsmInfo &MAI) const {
|
||||||
|
|
||||||
// FIXME: Does .section .bss/.data/.text work everywhere??
|
// FIXME: Does .section .bss/.data/.text work everywhere??
|
||||||
if (strcmp(Name, ".text") == 0 ||
|
if (strcmp(Name, ".text") == 0 ||
|
||||||
@ -37,7 +37,6 @@ bool MCSectionELF::ShouldOmitSectionDirective(const char *Name,
|
|||||||
|
|
||||||
// ShouldPrintSectionType - Only prints the section type if supported
|
// ShouldPrintSectionType - Only prints the section type if supported
|
||||||
bool MCSectionELF::ShouldPrintSectionType(unsigned Ty) const {
|
bool MCSectionELF::ShouldPrintSectionType(unsigned Ty) const {
|
||||||
|
|
||||||
if (IsExplicit && !(Ty == SHT_NOBITS || Ty == SHT_PROGBITS))
|
if (IsExplicit && !(Ty == SHT_NOBITS || Ty == SHT_PROGBITS))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user