HomePhabricator

[lldb] Add a host-independent test for handling -flimit-debug-info

Authored by labath on Jul 2 2020, 6:27 AM.

Description

[lldb] Add a host-independent test for handling -flimit-debug-info

This complements the existing TestLimitDebugInfo.py, which tests this
scenario more comprehensively, but is not able to run on all hosts.
Specifically, it's hard to trigger this code from windows because clang
tries hard to ensure that debug info for types marked with
__declspec(dllexport) is emitted even under -flimit-debug-info (and
dllexport is needed to use a type across shared libraries).

This assembly-based test serves two purposes:

  • it tests that -flimit-debug-info code path works for windows binaries (even though the aforementioned feature means its less likely to be used there)
  • it gives basic test coverage for the -flimit-debug-info handling code when running the test suite on windows hosts.

Details

Committed
labathJul 2 2020, 6:51 AM
Parents
rGe0968ad45948: call ::pthread_detach on llvm_execute_on_thread_impl
Branches
Unknown
Tags
Unknown