[llvm-symbolizer] Add back --use-symbol-table=true

It is used by clusterfuzz (https://github.com/google/clusterfuzz/pull/2009/)
and having this compatibility option for a while can help they do bisection
with the latest llvm-symbolizer.

Reviewed By: jhenderson

Differential Revision: https://reviews.llvm.org/D87067
This commit is contained in:
Fangrui Song 2020-09-02 18:20:59 -07:00
parent 2b71b7f791
commit 3d54976a70
2 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,7 @@
# REQUIRES: x86-registered-target
# RUN: llvm-mc -filetype=obj -triple=x86_64 -g %s -o %t.o
## --use-symbol-table=true is used by old asan_symbolize.py and Android ndk
## ndk-stack.py. Keep it as a no-op compatibility option for a while.
# RUN: llvm-symbolizer --use-symbol-table=true %t.o

View File

@ -67,3 +67,5 @@ def : Flag<["--"], "inlining=false">, Alias<no_inlines>, HelpText<"Alias for --n
// Compatibility aliases for pprof's symbolizer.
def : Flag<["-"], "demangle=true">, Alias<demangle>, HelpText<"Alias for --demangle">;
def : Flag<["-"], "demangle=false">, Alias<no_demangle>, HelpText<"Alias for --no-demangle">;
// Compatibility no-op options.
def : Flag<["--"], "use-symbol-table=true">;