summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-19 02:13:06 +0000
committerChris Lattner <sabre@nondot.org>2010-01-19 02:13:06 +0000
commitaa1f4fd0edeb208ff042b8a412620a7edc4c4b95 (patch)
tree6db9794dc5d130518866e5910a44882d2ed9ad6c /llvm/lib
parent1d371882b6da32538d198004be1b272567b150a3 (diff)
downloadbcm5719-llvm-aa1f4fd0edeb208ff042b8a412620a7edc4c4b95.tar.gz
bcm5719-llvm-aa1f4fd0edeb208ff042b8a412620a7edc4c4b95.zip
change an accessor to a predicate.
llvm-svn: 93839
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp4
-rw-r--r--llvm/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp4
-rw-r--r--llvm/lib/Target/X86/AsmPrinter/X86AsmPrinter.cpp4
3 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp b/llvm/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp
index 30f9fec867e..2ba940bb492 100644
--- a/llvm/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp
+++ b/llvm/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp
@@ -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
diff --git a/llvm/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp b/llvm/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp
index fad1c27fac6..28dd193deb2 100644
--- a/llvm/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp
+++ b/llvm/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp
@@ -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
diff --git a/llvm/lib/Target/X86/AsmPrinter/X86AsmPrinter.cpp b/llvm/lib/Target/X86/AsmPrinter/X86AsmPrinter.cpp
index 3c290e8efd3..3bf4c4c9af7 100644
--- a/llvm/lib/Target/X86/AsmPrinter/X86AsmPrinter.cpp
+++ b/llvm/lib/Target/X86/AsmPrinter/X86AsmPrinter.cpp
@@ -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
OpenPOWER on IntegriCloud