mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 12:50:30 +00:00
[llvm-strip] Add missing aliases for --strip-debug
Add missing aliases for --strip-debug: -g, -S, -d. Test plan: make check-all Differential revision: https://reviews.llvm.org/D47674 llvm-svn: 333940
This commit is contained in:
parent
58bd18d592
commit
936cf94651
@ -1,15 +1,26 @@
|
||||
# RUN: yaml2obj %s > %t
|
||||
# RUN: cp %t %t3
|
||||
# RUN: llvm-objcopy -strip-debug %t %t2
|
||||
# RUN: llvm-readobj -file-headers -sections -symbols %t2 | FileCheck %s
|
||||
|
||||
# We run yaml2obj again rather than copy %t to avoid interfering
|
||||
# with llvm-objcopy's test (which potentially could have corrupted/updated the binary).
|
||||
# Verify that the previous run of llvm-objcopy has not modified the input.
|
||||
# RUN: cmp %t %t3
|
||||
|
||||
# RUN: yaml2obj %s > %t3
|
||||
# RUN: llvm-strip -strip-debug %t3
|
||||
# RUN: llvm-readobj -file-headers -sections -symbols %t3 | FileCheck %s
|
||||
# RUN: cmp %t2 %t3
|
||||
|
||||
# RUN: cp %t %t4
|
||||
# RUN: llvm-strip -d %t4
|
||||
# RUN: cmp %t2 %t4
|
||||
|
||||
# RUN: cp %t %t5
|
||||
# RUN: llvm-strip -g %t5
|
||||
# RUN: cmp %t2 %t5
|
||||
|
||||
# RUN: cp %t %t6
|
||||
# RUN: llvm-strip -S %t6
|
||||
# RUN: cmp %t2 %t6
|
||||
|
||||
!ELF
|
||||
FileHeader:
|
||||
Class: ELFCLASS64
|
||||
|
@ -14,6 +14,15 @@ defm output : Eq<"o">,
|
||||
def strip_debug : Flag<["-", "--"], "strip-debug">,
|
||||
HelpText<"Remove debugging symbols only">;
|
||||
|
||||
def d : Flag<["-"], "d">,
|
||||
Alias<strip_debug>;
|
||||
|
||||
def g : Flag<["-"], "g">,
|
||||
Alias<strip_debug>;
|
||||
|
||||
def S : Flag<["-"], "S">,
|
||||
Alias<strip_debug>;
|
||||
|
||||
defm remove_section : Eq<"remove-section">,
|
||||
MetaVarName<"section">,
|
||||
HelpText<"Remove <section>">;
|
||||
|
Loading…
Reference in New Issue
Block a user