Skip to content

Commit 4456757

Browse files
committed
[lldb] Sink the initializaion of Reflection flags into SetupReflection (NFC)
1 parent 4845a66 commit 4456757

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lldb/source/Plugins/LanguageRuntime/Swift/SwiftLanguageRuntime.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -562,13 +562,14 @@ SwiftLanguageRuntimeImpl::GetConformances(llvm::StringRef mangled_name) {
562562
void SwiftLanguageRuntimeImpl::SetupReflection() {
563563
LLDB_SCOPED_TIMER();
564564

565-
566565
std::lock_guard<std::recursive_mutex> lock(m_reflection_ctx_mutex);
567566
if (m_initialized_reflection_ctx)
568567
return;
569568

570569
// The global ABI bit is read by the Swift runtime library.
571570
SetupABIBit();
571+
SetupExclusivity();
572+
SetupSwiftError();
572573

573574
auto &target = m_process.GetTarget();
574575
auto exe_module = target.GetExecutableModule();
@@ -647,9 +648,6 @@ void SwiftLanguageRuntimeImpl::SetupABIBit() {
647648

648649
SwiftLanguageRuntimeImpl::SwiftLanguageRuntimeImpl(Process &process)
649650
: m_process(process) {
650-
// The global ABI bit is read by the Swift runtime library.
651-
SetupExclusivity();
652-
SetupSwiftError();
653651
Target &target = m_process.GetTarget();
654652
m_modules_to_add.Append(target.GetImages());
655653
RegisterSwiftFrameRecognizers(m_process);

0 commit comments

Comments
 (0)