about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/Linker.cpp
diff options
context:
space:
mode:
authorortem <ortem00@gmail.com>2020-11-20 17:54:26 +0300
committerortem <ortem00@gmail.com>2020-11-20 17:54:57 +0300
commit905ed3bb6b1f1a8abb253192333bb3f5a08b61c8 (patch)
tree322f26550bd716a21adcde069fe6259a43b42e70 /compiler/rustc_llvm/llvm-wrapper/Linker.cpp
parentae6aa22cf26fede2177abe4ff974030058885b7a (diff)
downloadrust-905ed3bb6b1f1a8abb253192333bb3f5a08b61c8.tar.gz
rust-905ed3bb6b1f1a8abb253192333bb3f5a08b61c8.zip
Resolve typedefs in HashMap gdb/lldb pretty-printers
`GetTypedefedType` (LLDB) and `strip_typedefs` (GDB) calls are needed to resolve key and value types completely.
Without these calls, debugger doesn't show the actual type.

* Before (without `GetTypedefedType`):
(lldb) frame variable hm[0]
(T) hm[0] = { ... }

* After (with `GetTypedefedType`):
(lldb) frame variable hm[0]
((i32, alloc::string::String)) hm[0] = { ... }
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/Linker.cpp')
0 files changed, 0 insertions, 0 deletions