llvm-project/lldb/lit/SymbolFile/PDB
Aleksandr Urakov ee12a75e38 [NativePDB] Add anonymous namespaces support
Summary:
This patch adds anonymous namespaces support to the native PDB plugin.

I had to reference from the main function variables of the types that are inside
of the anonymous namespace to include them in debug info. Without the references
they are not included. I think it's because they are static, then are visible
only in the current translation unit, so they are not needed without any
references to them.

There is also the problem case with variables of types that are nested in
template structs. For now I've left FIXME in the test because this case is not
related to the change.

Reviewers: zturner, asmith, labath, stella.stamenova, amccarth

Reviewed By: amccarth

Subscribers: zloyrobot, aprantl, teemperor, lldb-commits, leonid.mashinskiy

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D60817

llvm-svn: 358873
2019-04-22 07:14:40 +00:00
..
Inputs [PDB] Fix location retrieval for function local variables and arguments that are 2019-02-01 10:01:18 +00:00
ast-restore.test [NativePDB] Add anonymous namespaces support 2019-04-22 07:14:40 +00:00
calling-conventions.test [PDB] Make PDB lit tests use the new builder 2018-12-05 17:35:30 +00:00
class-layout.test Attempt to fix PDB tests broken by r350924 2019-01-11 18:24:17 +00:00
compilands.test Attempt to fix PDB tests broken by r350924 2019-01-11 18:24:17 +00:00
enums-layout.test Change lldb-test to use ParseAllDebugSymbols. 2019-01-09 21:20:44 +00:00
expressions.test [PDB] Make PDB lit tests use the new builder 2018-12-05 17:35:30 +00:00
func-symbols.test Attempt to fix PDB tests broken by r350924 2019-01-11 18:24:17 +00:00
function-level-linking.test [NativePDB] Enable function-level-linking.test in native mode. 2018-12-19 20:00:25 +00:00
function-nested-block.test [PDB] Make PDB lit tests use the new builder 2018-12-05 17:35:30 +00:00
pointers.test [PDB] Make PDB lit tests use the new builder 2018-12-05 17:35:30 +00:00
type-quals.test Attempt to fix PDB tests broken by r350924 2019-01-11 18:24:17 +00:00
typedefs.test Attempt to fix PDB tests broken by r350924 2019-01-11 18:24:17 +00:00
udt-layout.test [PDB] Make PDB lit tests use the new builder 2018-12-05 17:35:30 +00:00
variables-locations.test [PDB] Fix location retrieval for function local variables and arguments that are 2019-02-01 10:01:18 +00:00
variables.test Attempt to fix PDB tests broken by r350924 2019-01-11 18:24:17 +00:00
vbases.test [PDB] Make PDB lit tests use the new builder 2018-12-05 17:35:30 +00:00