diff options
| author | Jordan Rupprecht <rupprecht@google.com> | 2025-02-21 10:13:01 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-21 10:13:01 -0600 |
| commit | 8a39214b7e6e79e65135b7dbcc98b427a032d5fb (patch) | |
| tree | ddd36db85426ef7be9acacbf71a404050e1ffd7f /lldb/test/API/functionalities/scripted_process/TestStackCoreScriptedProcess.py | |
| parent | bd034ab1113cd3705fedf75d870dc4b7388d8f70 (diff) | |
[Support] Apply `constexpr` to `getTypeName` (#127893)
This is a followup to 003a721c1c9e3a99d6d0c1a6755443b260235537, which we
noticed increased binary size a small but noticable amount. The increase
seems to be due to code size from each `llvm::getTypeName<T>` wrapper,
which adds up if there are a lot of types.
The original motivation was to improve runtime and avoid `getTypeName`
being recomputed each time. The implementation is simple enough that we
can make it fully constexpr, which addresses the size increase, but also
further improves runtime: we directly reference the data instead of
jumping through a guard variable to see if we've computed it already.
Diffstat (limited to 'lldb/test/API/functionalities/scripted_process/TestStackCoreScriptedProcess.py')
0 files changed, 0 insertions, 0 deletions
