summaryrefslogtreecommitdiffstats
path: root/lld/lib/Driver/InputGraph.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2013-11-13 03:09:20 +0000
committerRui Ueyama <ruiu@google.com>2013-11-13 03:09:20 +0000
commit2235bff2b916eb1564e17b39880687a19aaf50f3 (patch)
treec8e989e22f4668dfa58dd615a33d62fb2e2c8769 /lld/lib/Driver/InputGraph.cpp
parent12f390856c86c3c5eaf2e4f05fde6445e435c6d9 (diff)
downloadbcm5719-llvm-2235bff2b916eb1564e17b39880687a19aaf50f3.tar.gz
bcm5719-llvm-2235bff2b916eb1564e17b39880687a19aaf50f3.zip
Use empty() instead of size() == 0.
llvm-svn: 194551
Diffstat (limited to 'lld/lib/Driver/InputGraph.cpp')
-rw-r--r--lld/lib/Driver/InputGraph.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/lib/Driver/InputGraph.cpp b/lld/lib/Driver/InputGraph.cpp
index be7fea0c18c..3f464618c9b 100644
--- a/lld/lib/Driver/InputGraph.cpp
+++ b/lld/lib/Driver/InputGraph.cpp
@@ -133,7 +133,7 @@ uint32_t ControlNode::getResolveState() const {
/// \brief Set the resolve state for the current element
/// thats processed by the resolver.
void ControlNode::setResolveState(uint32_t resolveState) {
- if (_elements.size() == 0)
+ if (_elements.empty())
return;
_elements[_currentElementIndex]->setResolveState(resolveState);
}
@@ -151,7 +151,7 @@ SimpleFileNode::SimpleFileNode(StringRef path, int64_t ordinal)
/// of the input elements contained in the group.
ErrorOr<File &> Group::getNextFile() {
// If there are no elements, move on to the next input element
- if (_elements.size() == 0)
+ if (_elements.empty())
return make_error_code(InputGraphError::no_more_files);
for (;;) {
OpenPOWER on IntegriCloud