diff options
author | Michael Buch <michaelbuch12@gmail.com> | 2023-01-15 03:26:41 +0000 |
---|---|---|
committer | Michael Buch <michaelbuch12@gmail.com> | 2023-01-27 02:24:36 +0000 |
commit | 1aee040c6545ad65d87b14a694078c182b9fa359 (patch) | |
tree | f10aeebdd5d6e6adf4dba632dd850df6c35d8df5 /llvm/lib/CodeGen/StackProtector.cpp | |
parent | a29e06bbeaad7012ac85b221f1aaba3fe1d5fd35 (diff) | |
download | llvm-1aee040c6545ad65d87b14a694078c182b9fa359.zip llvm-1aee040c6545ad65d87b14a694078c182b9fa359.tar.gz llvm-1aee040c6545ad65d87b14a694078c182b9fa359.tar.bz2 |
[lldb] Add support for DW_AT_default_value in template params
**Summary**
This patch makes LLDB understand the `DW_AT_default_value` on
template argument DIEs. As a result, type summaries will no
longer contain the defaulted template arguments, reducing
noise substantially. E.g.,
Before:
```
(lldb) v nested
(std::vector<std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >, std::allocator<std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator <char> > > > > >) nested = size=0 {}
```
After:
```
(lldb) v nested
(std::vector<std::vector<std::basic_string<char> > >) nested = size=0 {}
```
See discussion in https://reviews.llvm.org/D140423
**Testing**
* Adjust API tests
* Added unit-test
Differential Revision: https://reviews.llvm.org/D141828
Diffstat (limited to 'llvm/lib/CodeGen/StackProtector.cpp')
0 files changed, 0 insertions, 0 deletions