aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorZequan Wu <zequanwu@google.com>2022-06-13 11:53:38 -0700
committerZequan Wu <zequanwu@google.com>2022-06-13 12:04:25 -0700
commit3222f95ea8c4de153f908c138cdec178e22acaf4 (patch)
tree6fde2ab49789bf7e7dcde35ac140dff9b783493d /clang/lib/CodeGen/CodeGenModule.h
parentd4245ed67ce44188714e6b29a0b45e860619bcf2 (diff)
downloadllvm-3222f95ea8c4de153f908c138cdec178e22acaf4.zip
llvm-3222f95ea8c4de153f908c138cdec178e22acaf4.tar.gz
llvm-3222f95ea8c4de153f908c138cdec178e22acaf4.tar.bz2
[LLDB][NativePDB] Convert backslash to slash when creating CU and filter out CU with no function in ResolveSymbolContext.
On Windows, when compile with -fdebug-compilation-dir which contains slash, the source file path in PDB will look like "../tmp\file.cc" because the path separator used is determined by target machine. Converting backslash to slash helps lldb to find the CU in ResolveSymbolContext. We want to filter out CU with no function in ResolveSymbolContext as a cpp file will have two debug info modules in PDB if built with thinlto and one of them is a skeleton with no function debug info.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
0 files changed, 0 insertions, 0 deletions