[PATCH] D43032: Add --build-id=fast as a synonym for --build-id.

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 7 11:26:09 PST 2018


This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was automatically updated to reflect the committed changes.
Closed by commit rL324502: Add --build-id=fast as a synonym for --build-id. (authored by ruiu, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D43032?vs=133261&id=133264#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D43032

Files:
  lld/trunk/ELF/Driver.cpp
  lld/trunk/test/ELF/build-id.s


Index: lld/trunk/ELF/Driver.cpp
===================================================================
--- lld/trunk/ELF/Driver.cpp
+++ lld/trunk/ELF/Driver.cpp
@@ -554,6 +554,8 @@
     return {BuildIdKind::Fast, {}};
 
   StringRef S = Arg->getValue();
+  if (S == "fast")
+    return {BuildIdKind::Fast, {}};
   if (S == "md5")
     return {BuildIdKind::Md5, {}};
   if (S == "sha1" || S == "tree")
Index: lld/trunk/test/ELF/build-id.s
===================================================================
--- lld/trunk/test/ELF/build-id.s
+++ lld/trunk/test/ELF/build-id.s
@@ -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
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43032.133264.patch
Type: text/x-patch
Size: 929 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180207/4492022f/attachment.bin>


More information about the llvm-commits mailing list