diff options
| author | Jan Svoboda <jan_svoboda@apple.com> | 2020-12-21 13:50:09 +0100 |
|---|---|---|
| committer | Jan Svoboda <jan_svoboda@apple.com> | 2020-12-22 14:45:29 +0100 |
| commit | bef9eb84b2fb17b22ca771c8c5c34a85f141168d (patch) | |
| tree | 2fa768846841b4c179b2e814b705e70da15eefa9 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | 31b67d2debd43b9854248b853a52ea989c7322a0 (diff) | |
[clang] NFC: Refactor custom class into a lambda in CompilerInvocation
Change `makeFlagToValueNormalizer` so that one specialization converts all integral/enum arguments into `uint64_t` and forwards them to the more generic version.
This makes it easy to replace the custom `FlagToValueNormalizer` struct with a lambda, which is the common approach in other (de)normalizers.
Finally, drop custom `is_int_convertbile` in favor of `llvm::is_integral_or_enum`.
Reviewed By: dexonsmith
Differential Revision: https://reviews.llvm.org/D93628
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
