[lldb] Don't crash when printing static enum members with bool as underlying type
authorArthur Eubanks <aeubanks@google.com>
Sun, 30 Oct 2022 19:42:40 +0000 (12:42 -0700)
committerArthur Eubanks <aeubanks@google.com>
Tue, 1 Nov 2022 16:28:54 +0000 (09:28 -0700)
commita715b1bde91077b313b9c36d9ecbc0c83a0edac2
treede271042fa9d2e4468bb21d706f19d4400ba20a6
parent0991da36906bdb29b8f1030d5123bafb58fee79e
[lldb] Don't crash when printing static enum members with bool as underlying type

Undoes a lot of the code added in D135169 to piggyback off of the enum logic in `TypeSystemClang::SetIntegerInitializerForVariable()`.

Fixes #58383.

Reviewed By: DavidSpickett

Differential Revision: https://reviews.llvm.org/D137045
lldb/include/lldb/Symbol/CompilerType.h
lldb/include/lldb/Symbol/TypeSystem.h
lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.h
lldb/source/Symbol/CompilerType.cpp
lldb/test/API/lang/cpp/const_static_integral_member/TestConstStaticIntegralMember.py
lldb/test/API/lang/cpp/const_static_integral_member/main.cpp