[llvm-nm] Transform a switch() statement in a pair of if(s).

This is more uniform wrt what other tools do and makes the code
a little bit more readable.

llvm-svn: 259937
This commit is contained in:
Davide Italiano 2016-02-05 22:07:09 +00:00
parent b3cd79bb4e
commit d535365794
1 changed files with 2 additions and 7 deletions

View File

@ -1267,15 +1267,10 @@ int main(int argc, char **argv) {
PrintAddress = false;
if (OutputFormat == sysv || SizeSort)
PrintSize = true;
switch (InputFilenames.size()) {
case 0:
if (InputFilenames.size() == 0)
InputFilenames.push_back("a.out");
case 1:
break;
default:
if (InputFilenames.size() > 1)
MultipleFiles = true;
}
for (unsigned i = 0; i < ArchFlags.size(); ++i) {
if (ArchFlags[i] == "all") {