aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.cpp
diff options
context:
space:
mode:
authorKeith Smiley <keithbsmiley@gmail.com>2021-10-07 13:25:21 -0700
committerKeith Smiley <keithbsmiley@gmail.com>2021-10-08 10:35:17 -0700
commita23a5967932292b82e9a7e4b37817d1b3f5be5ec (patch)
tree45b1ed1ed25653d4bec38e0883695bcf8ed9182b /lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.cpp
parentb4498e6b8d7f55e0fe9e26a5f5d21ec1a78f6fb0 (diff)
downloadllvm-a23a5967932292b82e9a7e4b37817d1b3f5be5ec.zip
llvm-a23a5967932292b82e9a7e4b37817d1b3f5be5ec.tar.gz
llvm-a23a5967932292b82e9a7e4b37817d1b3f5be5ec.tar.bz2
[clang] Fix absolute file paths with -fdebug-prefix-map
Previously if you passed an absolute path to clang, where only part of the path to the file was remapped, it would result in the file's DIFile being stored with a duplicate path, for example: ``` !DIFile(filename: "./ios/Sources/bar.c", directory: "./ios/Sources") ``` This change handles absolute paths, specifically in the case they are remapped to something relative, and uses the dirname for the directory, and basename for the filename. This also adds a test verifying this behavior for more standard uses as well. Differential Revision: https://reviews.llvm.org/D111352
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.cpp')
0 files changed, 0 insertions, 0 deletions