mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-29 06:10:48 +00:00
[llvm-symbolizer] Add compatibility aliases for --inlining={true,false}
D83530 removed --inlining={true,false} which were used by old asan_symbolize.py script. Add compatibility aliases so that old asan_symbolize.py and sanitizer binaries can work with new llvm-symbolizer. Reviewed By: thakis Differential Revision: https://reviews.llvm.org/D85228
This commit is contained in:
parent
a43b952b5a
commit
2f952ff535
@ -6,6 +6,10 @@ the option is not specified.
|
||||
|
||||
RUN: llvm-symbolizer --no-inlines -e %p/Inputs/addr.exe 0x40054d \
|
||||
RUN: | FileCheck %s --check-prefix=LLVM --implicit-check-not=inctwo
|
||||
## Before 2020-08-04, asan_symbolize.py passed --inlining=false if 'symbolize_inline_frames'
|
||||
## is set to false. Support this compatibility alias for a while.
|
||||
RUN: llvm-symbolizer --inlining=false -e %p/Inputs/addr.exe 0x40054d \
|
||||
RUN: | FileCheck %s --check-prefix=LLVM --implicit-check-not=inctwo
|
||||
|
||||
RUN: llvm-symbolizer --output-style=LLVM --no-inlines -e %p/Inputs/addr.exe 0x40054d \
|
||||
RUN: | FileCheck %s --check-prefix=LLVM --implicit-check-not=inctwo
|
||||
|
@ -26,6 +26,10 @@ RUN: llvm-symbolizer -inlines -print-address -pretty-print -obj=%p/Inputs/addr.e
|
||||
RUN: llvm-symbolizer -inlines -print-address -p -obj=%p/Inputs/addr.exe < %p/Inputs/addr.inp | FileCheck -check-prefix="PRETTY" %s
|
||||
RUN: llvm-symbolizer -i -print-address -pretty-print -obj=%p/Inputs/addr.exe < %p/Inputs/addr.inp | FileCheck -check-prefix="PRETTY" %s
|
||||
RUN: llvm-symbolizer -i -print-address -p -obj=%p/Inputs/addr.exe < %p/Inputs/addr.inp | FileCheck -check-prefix="PRETTY" %s
|
||||
## Before 2020-08-04, asan_symbolize.py passed --inlining=true.
|
||||
## Support this compatibility alias for a while.
|
||||
RUN: llvm-symbolizer --inlining=true --print-address -p --obj=%p/Inputs/addr.exe < %p/Inputs/addr.inp | FileCheck -check-prefix="PRETTY" %s
|
||||
|
||||
RUN: echo "0x1" > %t.input
|
||||
RUN: llvm-symbolizer -obj=%p/Inputs/zero < %t.input | FileCheck -check-prefix="ZERO" %s
|
||||
|
||||
|
@ -58,3 +58,7 @@ def : Flag<["-"], "i">, Alias<inlines>, HelpText<"Alias for --inlines">;
|
||||
def : F<"inlining", "Alias for --inlines">, Alias<inlines>;
|
||||
def : Flag<["-"], "p">, Alias<pretty_print>, HelpText<"Alias for --pretty-print">;
|
||||
def : Flag<["-"], "s">, Alias<basenames>, HelpText<"Alias for --basenames">;
|
||||
|
||||
// Compatibility aliases for old asan_symbolize.py and sanitizer binaries (before 2020-08).
|
||||
def : Flag<["--"], "inlining=true">, Alias<inlines>, HelpText<"Alias for --inlines">;
|
||||
def : Flag<["--"], "inlining=false">, Alias<no_inlines>, HelpText<"Alias for --no-inlines">;
|
||||
|
Loading…
Reference in New Issue
Block a user