DebugInfo: Emit only one kind of accelerated access/name table
authorDavid Blaikie <dblaikie@gmail.com>
Mon, 22 Apr 2019 22:45:11 +0000 (22:45 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Mon, 22 Apr 2019 22:45:11 +0000 (22:45 +0000)
commit68602ab2f3535291753a6149d1f445c5fd416152
tree004cdbf51128ff617fcb3ccace9b8674147c6094
parentbf8aacb7151cf3ed569c4907c934c45244f6914f
DebugInfo: Emit only one kind of accelerated access/name table

Currently to opt in to debug_names in DWARFv5, the IR must contain
'nameTableKind: Default' which also enables debug_pubnames.

Instead, only allow one of {debug_names, apple_names, debug_pubnames,
debug_gnu_pubnames}.

nameTableKind: Default gives debug_names in DWARFv5 and greater,
debug_pubnames in v4 and earlier - and apple_names when tuning for lldb
on MachO.
nameTableKind: GNU always gives gnu_pubnames

llvm-svn: 358931
llvm/lib/CodeGen/AsmPrinter/AccelTable.cpp
llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
llvm/test/DebugInfo/X86/accel-tables.ll
llvm/test/DebugInfo/X86/gnu-names.ll [new file with mode: 0644]