llvm.org GIT mirror llvm / ef7a206
[dsymutil][NFC} Rename thread related command line options This makes the command line options consistent with llvm-cov and llvm-profdata, which both use `-num-threads` and `-j`. This also addresses the conflict reported after landing D39355. Differential revision: https://reviews.llvm.org/D39496 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@317104 91177308-0d34-0410-b5e6-96231b3b80d8 Jonas Devlieghere 2 years ago
2 changed file(s) with 7 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
88 HELP: -no-odr
99 HELP: -no-output
1010 HELP: -no-swiftmodule-timestamp
11 HELP: -num-threads=
1112 HELP: -o=
1213 HELP: -oso-prepend-path=
1314 HELP: -symtab
14 HELP: -threads=
1515 HELP: -verbose
1616 HELP: -y
1717 HELP-NOT: -reverse-iterate
6161 init(false), cat(DsymCategory));
6262 static alias FlatOutA("f", desc("Alias for --flat"), aliasopt(FlatOut));
6363
64 static opt Threads(
65 "threads",
64 static opt NumThreads(
65 "num-threads",
6666 desc("Specifies the maximum number (n) of simultaneous threads to use\n"
6767 "when linking multiple architectures."),
6868 value_desc("n"), init(0), cat(DsymCategory));
69 static alias ThreadsA("t", desc("Alias for --threads"), aliasopt(Threads));
69 static alias NumThreadsA("j", desc("Alias for --num-threads"),
70 aliasopt(NumThreads));
7071
7172 static opt Verbose("verbose", desc("Verbosity level"), init(false),
7273 cat(DsymCategory));
323324 exitDsymutil(1);
324325 }
325326
326 unsigned NumThreads = Threads;
327 if (!NumThreads)
327 if (NumThreads == 0)
328328 NumThreads = llvm::thread::hardware_concurrency();
329329 if (DumpDebugMap || Verbose)
330330 NumThreads = 1;
331 NumThreads = std::min(NumThreads, (unsigned)DebugMapPtrsOrErr->size());
331 NumThreads = std::min(NumThreads, DebugMapPtrsOrErr->size());
332332
333333 llvm::ThreadPool Threads(NumThreads);
334334