[lldb] Port Process::PrintWarning* to use the new diagnostic events
authorJonas Devlieghere <jonas@devlieghere.com>
Thu, 14 Apr 2022 17:46:57 +0000 (10:46 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Thu, 14 Apr 2022 18:00:21 +0000 (11:00 -0700)
commit99d9c44434f57df5f188146925eea3bd8771260d
treee6d59e6ab5914ad8a3fd9c4e782b2df6f2c44320
parent64d9b233b9905a951b450eff5b258707a35e110f
[lldb] Port Process::PrintWarning* to use the new diagnostic events

Port the two Process::PrintWarning functions to use the new diagnostic
events through Debugger::ReportWarning. I kept the wrapper function in
the process, but delegated the work to the Module. Consistent with the
current code, the Module ensures the warning is only printed once per
module.

Differential revision: https://reviews.llvm.org/D123698
lldb/include/lldb/Core/Module.h
lldb/include/lldb/Target/Process.h
lldb/source/Core/Module.cpp
lldb/source/Target/Process.cpp
lldb/test/Shell/Process/Optimization.test
lldb/test/Shell/Process/UnsupportedLanguage.test