DebugInfo: Correct/improve type formatting (pointers to function types especially)
authorDavid Blaikie <dblaikie@gmail.com>
Fri, 3 Sep 2021 19:18:13 +0000 (12:18 -0700)
committerDavid Blaikie <dblaikie@gmail.com>
Fri, 3 Sep 2021 19:22:28 +0000 (12:22 -0700)
commit40f15935582f685326ff8e5c95e0f185ae1acd3c
tree8bdf0bd65c8920629eba78e97828ec250100fe1c
parent6df09d6ccbc0cb72d3278cafb592e9bc0e6b84a1
DebugInfo: Correct/improve type formatting (pointers to function types especially)

This does add some extra superfluous whitespace (eg: "int *") intended
to make the Simplified Template Names work easier - this makes the
DIE-based names match more exactly the clang-generated names, so it's
easier to identify cases that don't generate matching names.

(arguably we could change clang to skip that whitespace or add some
fuzzy matching to accommodate differences in certain whitespace - but
this seemed easier and fairly low-impact)
llvm/lib/DebugInfo/DWARF/DWARFDie.cpp
llvm/test/DebugInfo/MSP430/dwarf-basics.ll
llvm/test/DebugInfo/X86/dwarfdump-allocatedVar.ll
llvm/test/DebugInfo/X86/dwarfdump-associatedVar.ll
llvm/test/DebugInfo/X86/tu-to-non-named-type.ll
llvm/test/MC/WebAssembly/dwarfdump.ll
llvm/test/MC/WebAssembly/dwarfdump64.ll
llvm/test/tools/dsymutil/X86/dwarf5.test
llvm/test/tools/llvm-dwarfdump/X86/DW_AT_object_pointer.s
llvm/test/tools/llvm-dwarfdump/X86/prettyprint_types.s