At the moment, dsymutil drops all remarks without debug location. There are many cases where debug location may be missing for remarks, mostly due LLVM not preserving debug locations. When using bitstream remarks for statistical analysis, those missed remarks mean we get an incomplete picture. The patch flips the default to keeping all remarks and leaving it to tools that display remarks to filter out remarks without debug locations as needed. The new --remarks-drop-without-debug flag can be used to drop remarks without debug locations, i.e. restore the previous behavior. Reviewed By: thegameg Differential Revision: https://reviews.llvm.org/D151089
49 lines
1.3 KiB
Plaintext
49 lines
1.3 KiB
Plaintext
RUN: dsymutil -help 2>&1 | FileCheck --check-prefix=CHECK --check-prefix=HELP %s
|
|
RUN: cat %S/../../../docs/CommandGuide/dsymutil.rst | FileCheck %s
|
|
|
|
HELP: OVERVIEW: manipulate archived DWARF debug symbol files.
|
|
HELP: USAGE: {{.*}}dsymutil{{[^ ]*}} [options] <input files>
|
|
HELP-NOT: -reverse-iterate
|
|
HELP: Dsymutil Options:
|
|
CHECK: -accelerator
|
|
CHECK: -arch <arch>
|
|
CHECK: -dump-debug-map
|
|
CHECK: -fat64
|
|
CHECK: -flat
|
|
CHECK: -gen-reproducer
|
|
CHECK: -help
|
|
CHECK: -keep-function-for-static
|
|
CHECK: -no-odr
|
|
CHECK: -no-output
|
|
CHECK: -no-swiftmodule-timestamp
|
|
CHECK: -num-threads <threads>
|
|
CHECK: -object-prefix-map <prefix=remapped>
|
|
CHECK: -oso-prepend-path <path>
|
|
CHECK: -out <filename>
|
|
CHECK: {{-o <filename>}}
|
|
CHECK: -papertrail
|
|
CHECK: -remarks-drop-without-debug
|
|
CHECK: -remarks-output-format <format>
|
|
CHECK: -remarks-prepend-path <path>
|
|
CHECK: -reproducer <mode>
|
|
CHECK: -statistics
|
|
CHECK: -symbol-map
|
|
CHECK: -symtab
|
|
CHECK: {{-S}}
|
|
CHECK: -toolchain
|
|
CHECK: -update
|
|
CHECK: -use-reproducer <path>
|
|
CHECK: -verbose
|
|
CHECK: -verify
|
|
CHECK: {{-y}}
|
|
HELP-NOT: -reverse-iterate
|
|
|
|
RUN: dsymutil --version 2>&1 | FileCheck --check-prefix=VERSION %s
|
|
VERSION: {{ version }}
|
|
|
|
RUN: not dsymutil 2>&1 | FileCheck --check-prefix=NOINPUT %s
|
|
NOINPUT: error: no input files specified
|
|
|
|
RUN: dsymutil -bogus -help 2>&1 | FileCheck --check-prefix=BOGUS %s
|
|
BOGUS: warning: ignoring unknown option: -bogus
|