Reland "[lldb] Add support for using integral const static data members in the expres...
authorAndy Yankovsky <weratt@gmail.com>
Fri, 15 Jul 2022 10:43:48 +0000 (10:43 +0000)
committerAndy Yankovsky <werat@google.com>
Fri, 15 Jul 2022 10:52:35 +0000 (10:52 +0000)
commit7d297de95117e783bbfaecbba1f72fc55de05a30
tree2813c0c037cdd50e279bd49c94ea65304864686c
parent0a9752d937e1b35729b5d21808389dab615f4dd3
Reland "[lldb] Add support for using integral const static data members in the expression evaluator"

Reland 486787210d which broke tests on Arm and Windows.

* Windows -- on Windows const static data members with no out-of-class
  definition do have valid addresses, in constract to other platforms
  (Linux, macos) where they don't. Adjusted the test to expect success
  on Windows and failure on other platforms.

* Arm -- `int128` is not available on 32-bit ARM, so disable the test
  for this architecture.
lldb/source/Plugins/ExpressionParser/Clang/ASTResultSynthesizer.cpp
lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.h
lldb/test/API/lang/cpp/const_static_integral_member/Makefile [new file with mode: 0644]
lldb/test/API/lang/cpp/const_static_integral_member/TestConstStaticIntegralMember.py [new file with mode: 0644]
lldb/test/API/lang/cpp/const_static_integral_member/main.cpp [new file with mode: 0644]
lldb/test/API/lang/cpp/const_static_integral_member_int128/Makefile [new file with mode: 0644]
lldb/test/API/lang/cpp/const_static_integral_member_int128/TestConstStaticIntegralMemberInt128.py [new file with mode: 0644]
lldb/test/API/lang/cpp/const_static_integral_member_int128/main.cpp [new file with mode: 0644]
lldb/unittests/SymbolFile/DWARF/CMakeLists.txt
lldb/unittests/SymbolFile/DWARF/DWARFASTParserClangTests.cpp