[lldb][NFC] Always update m_cache_{hits/misses} in FormatCache
authorRaphael Isemann <teemperor@gmail.com>
Tue, 24 Mar 2020 19:16:41 +0000 (20:16 +0100)
committerRaphael Isemann <teemperor@gmail.com>
Tue, 24 Mar 2020 19:16:43 +0000 (20:16 +0100)
commit6b6a779ca8ce4025ed0a38fbcfcb6c07334ace57
tree601c988a63cbab024ddd4ab169561525d66df6e4
parentaef982e35acd2a0c4f6064308601658745e78cfc
[lldb][NFC] Always update m_cache_{hits/misses} in FormatCache

Summary:
These two variables are only incremented under LLDB_CONFIGURATION_DEBUG but their
value is always logged when verbose lldb formatter logging is enabled, which causes that our
cache hit/miss log looks like this in non-Debug builds:

```
Cache hits: 0 - Cache Misses: 0
...
Cache hits: 0 - Cache Misses: 0
...
Cache hits: 0 - Cache Misses: 0
```

This just always increments those two counters independent of build mode.

Reviewers: JDevlieghere

Reviewed By: JDevlieghere

Differential Revision: https://reviews.llvm.org/D76687
lldb/include/lldb/DataFormatters/FormatCache.h
lldb/source/DataFormatters/FormatCache.cpp