summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMAsmPrinter.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/ARM/ARMAsmPrinter.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/ARM/ARMAsmPrinter.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMAsmPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMAsmPrinter.cpp b/llvm/lib/Target/ARM/ARMAsmPrinter.cpp
index 38183c6f12f..9435cc1174f 100644
--- a/llvm/lib/Target/ARM/ARMAsmPrinter.cpp
+++ b/llvm/lib/Target/ARM/ARMAsmPrinter.cpp
@@ -1001,7 +1001,7 @@ bool ARMAsmPrinter::doFinalization(Module &M) {
O << "\n";
// Output non-lazy-pointers for external and common global variables.
- if (GVNonLazyPtrs.begin() != GVNonLazyPtrs.end())
+ if (!GVNonLazyPtrs.empty())
SwitchToDataSection(".non_lazy_symbol_pointer", 0);
for (std::set<std::string>::iterator i = GVNonLazyPtrs.begin(),
e = GVNonLazyPtrs.end(); i != e; ++i) {
OpenPOWER on IntegriCloud