mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-25 04:39:44 +00:00
change an accessor to a predicate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93839 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
aac138e84d
commit
6e3be14be4
@ -315,8 +315,8 @@ public:
|
||||
|
||||
/// getDataCommonSection - Return the "__DATA,__common" section we put
|
||||
/// zerofill (aka bss) data into.
|
||||
const MCSection *getDataCommonSection() const {
|
||||
return DataCommonSection;
|
||||
bool isDataCommonSection(const MCSection *Section) const {
|
||||
return Section == DataCommonSection;
|
||||
}
|
||||
|
||||
/// getLazySymbolPointerSection - Return the section corresponding to
|
||||
|
@ -1205,8 +1205,8 @@ void ARMAsmPrinter::PrintGlobalVariable(const GlobalVariable* GVar) {
|
||||
// emission.
|
||||
if (GVKind.isBSS() && MAI->hasMachoZeroFillDirective()) {
|
||||
TargetLoweringObjectFileMachO &TLOFMacho =
|
||||
static_cast<TargetLoweringObjectFileMachO &>(getObjFileLowering());
|
||||
if (TheSection == TLOFMacho.getDataCommonSection()) {
|
||||
static_cast<TargetLoweringObjectFileMachO &>(getObjFileLowering());
|
||||
if (TLOFMacho.isDataCommonSection(TheSection)) {
|
||||
// .globl _foo
|
||||
OutStreamer.EmitSymbolAttribute(GVarSym, MCStreamer::Global);
|
||||
// .zerofill __DATA, __common, _foo, 400, 5
|
||||
|
@ -953,8 +953,8 @@ void PPCDarwinAsmPrinter::PrintGlobalVariable(const GlobalVariable *GVar) {
|
||||
// emission.
|
||||
if (GVKind.isBSS() && MAI->hasMachoZeroFillDirective()) {
|
||||
TargetLoweringObjectFileMachO &TLOFMacho =
|
||||
static_cast<TargetLoweringObjectFileMachO &>(getObjFileLowering());
|
||||
if (TheSection == TLOFMacho.getDataCommonSection()) {
|
||||
static_cast<TargetLoweringObjectFileMachO &>(getObjFileLowering());
|
||||
if (TLOFMacho.isDataCommonSection(TheSection)) {
|
||||
// .globl _foo
|
||||
OutStreamer.EmitSymbolAttribute(GVarSym, MCStreamer::Global);
|
||||
// .zerofill __DATA, __common, _foo, 400, 5
|
||||
|
@ -684,8 +684,8 @@ void X86AsmPrinter::PrintGlobalVariable(const GlobalVariable* GVar) {
|
||||
// emission.
|
||||
if (GVKind.isBSS() && MAI->hasMachoZeroFillDirective()) {
|
||||
TargetLoweringObjectFileMachO &TLOFMacho =
|
||||
static_cast<TargetLoweringObjectFileMachO &>(getObjFileLowering());
|
||||
if (TheSection == TLOFMacho.getDataCommonSection()) {
|
||||
static_cast<TargetLoweringObjectFileMachO &>(getObjFileLowering());
|
||||
if (TLOFMacho.isDataCommonSection(TheSection)) {
|
||||
// .globl _foo
|
||||
OutStreamer.EmitSymbolAttribute(GVarSym, MCStreamer::Global);
|
||||
// .zerofill __DATA, __common, _foo, 400, 5
|
||||
|
Loading…
Reference in New Issue
Block a user