summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2007-10-03 19:26:29 +0000
committerDan Gohman <gohman@apple.com>2007-10-03 19:26:29 +0000
commitc731c97facb5ff56daceb724d75f1f14e8d01f39 (patch)
tree700408f7fbcfb3dd5005afb0399dff630d61948b /llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
parent8c43e41d9bf388195d4b1f32b569193c77ca404a (diff)
downloadbcm5719-llvm-c731c97facb5ff56daceb724d75f1f14e8d01f39.tar.gz
bcm5719-llvm-c731c97facb5ff56daceb724d75f1f14e8d01f39.zip
Use empty() member functions when that's what's being tested for instead
of comparing begin() and end(). llvm-svn: 42585
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp b/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
index b561c043da7..9ff41cab90c 100644
--- a/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
+++ b/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
@@ -1053,7 +1053,7 @@ bool DarwinAsmPrinter::doFinalization(Module &M) {
O << "\n";
// Output stubs for external and common global variables.
- if (GVStubs.begin() != GVStubs.end()) {
+ if (!GVStubs.empty()) {
SwitchToDataSection(".non_lazy_symbol_pointer");
for (std::set<std::string>::iterator I = GVStubs.begin(),
E = GVStubs.end(); I != E; ++I) {
OpenPOWER on IntegriCloud