[llvm] r259938 - [llvm-nm] Prefer empty() over size() == 0.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 5 14:10:42 PST 2016
Author: davide
Date: Fri Feb 5 16:10:42 2016
New Revision: 259938
URL: http://llvm.org/viewvc/llvm-project?rev=259938&view=rev
Log:
[llvm-nm] Prefer empty() over size() == 0.
Thanks to David Blaikie for pointing this out!
Modified:
llvm/trunk/tools/llvm-nm/llvm-nm.cpp
Modified: llvm/trunk/tools/llvm-nm/llvm-nm.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-nm/llvm-nm.cpp?rev=259938&r1=259937&r2=259938&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-nm/llvm-nm.cpp (original)
+++ llvm/trunk/tools/llvm-nm/llvm-nm.cpp Fri Feb 5 16:10:42 2016
@@ -1267,7 +1267,7 @@ int main(int argc, char **argv) {
PrintAddress = false;
if (OutputFormat == sysv || SizeSort)
PrintSize = true;
- if (InputFilenames.size() == 0)
+ if (InputFilenames.empty())
InputFilenames.push_back("a.out");
if (InputFilenames.size() > 1)
MultipleFiles = true;
More information about the llvm-commits
mailing list