summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/expression_command/call-function
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2018-12-03 17:55:27 +0000
committerAdrian Prantl <aprantl@apple.com>2018-12-03 17:55:27 +0000
commit40c04e494253a6cbc106bb1d6530069c021ad97b (patch)
tree657e4e45e9890bbe76ded7ba0243eb54bd627e8d /lldb/packages/Python/lldbsuite/test/expression_command/call-function
parent3b6cd2c602010fb53f316201188e7daef63aab36 (diff)
downloadbcm5719-llvm-40c04e494253a6cbc106bb1d6530069c021ad97b.tar.gz
bcm5719-llvm-40c04e494253a6cbc106bb1d6530069c021ad97b.zip
Avoid emitting redundant or unusable directories in DIFile metadata entries.
As discussed on llvm-dev recently, Clang currently emits redundant directories in DIFile entries, such as .file 1 "/Volumes/Data/llvm" "/Volumes/Data/llvm/tools/clang/test/CodeGen/debug-info-abspath.c" This patch looks at any common prefix between the compilation directory and the (absolute) file path and strips the redundant part. More importantly it leaves the compilation directory empty if the two paths have no common prefix. After this patch the above entry is (assuming a compilation dir of "/Volumes/Data/llvm/_build"): .file 1 "/Volumes/Data/llvm" "tools/clang/test/CodeGen/debug-info-abspath.c" When building the FileCheck binary with debug info, this patch makes the build artifacts ~1kb smaller. Differential Revision: https://reviews.llvm.org/D55085 llvm-svn: 348154
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/expression_command/call-function')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud