llvm.org GIT mirror llvm / 40f8af0
[llvm-ar] Simplify the code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253138 91177308-0d34-0410-b5e6-96231b3b80d8 Davide Italiano 3 years ago
1 changed file(s) with 3 addition(s) and 12 deletion(s). Raw diff Collapse all Expand all
311311 // Utility function for printing out the file mode when the 't' operation is in
312312 // verbose mode.
313313 static void printMode(unsigned mode) {
314 if (mode & 004)
315 outs() << "r";
316 else
317 outs() << "-";
318 if (mode & 002)
319 outs() << "w";
320 else
321 outs() << "-";
322 if (mode & 001)
323 outs() << "x";
324 else
325 outs() << "-";
314 outs() << ((mode & 004) ? "r" : "-");
315 outs() << ((mode & 002) ? "w" : "-");
316 outs() << ((mode & 001) ? "x" : "-");
326317 }
327318
328319 // Implement the 't' operation. This function prints out just