mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-01 10:02:42 +00:00
[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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@259937 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
409c5545b1
commit
48d378b115
@ -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") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user