mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-23 07:52:06 +00:00
Add --build-id=fast as a synonym for --build-id.
When you omit an argument, most options fall back to their defaults. For example, --color-diagnostics is a synonym for --color-diagnostics=auto. We don't have a way to specify the default choice for --build-id, so we can't describe --build-id (without an argument) in that way. This patch adds "fast" for the default build-id choice. Differential Revision: https://reviews.llvm.org/D43032 llvm-svn: 324502
This commit is contained in:
parent
cca7dddcd3
commit
fa9f699d30
@ -554,6 +554,8 @@ getBuildId(opt::InputArgList &Args) {
|
||||
return {BuildIdKind::Fast, {}};
|
||||
|
||||
StringRef S = Arg->getValue();
|
||||
if (S == "fast")
|
||||
return {BuildIdKind::Fast, {}};
|
||||
if (S == "md5")
|
||||
return {BuildIdKind::Md5, {}};
|
||||
if (S == "sha1" || S == "tree")
|
||||
|
@ -7,6 +7,8 @@
|
||||
|
||||
# RUN: ld.lld --build-id %t -o %t2 -threads
|
||||
# RUN: llvm-objdump -s %t2 | FileCheck -check-prefix=DEFAULT %s
|
||||
# RUN: ld.lld --build-id=fast %t -o %t2 -threads
|
||||
# RUN: llvm-objdump -s %t2 | FileCheck -check-prefix=DEFAULT %s
|
||||
# RUN: ld.lld --build-id %t -o %t2 -no-threads
|
||||
# RUN: llvm-objdump -s %t2 | FileCheck -check-prefix=DEFAULT %s
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user