[Lldb-commits] [lldb] [LLDB][NFC] Move CPlusPlusLanguage methods used in Core/Module.cpp to a separated module to break lldb-server dependencies (PR #132274)

Dmitry Vasilyev via lldb-commits lldb-commits at lists.llvm.org
Tue Mar 25 11:53:13 PDT 2025


slydiman wrote:

> I'm similarly confused about how moving these method definitions into a separate CU makes a difference.

Please note Module.cpp uses only few functions which have no dependencies. After this patch the new CU CPlusPlusLanguageMethod.cpp with only necessary functions is linked. The rest CPlusPlusLanguage.cpp is not linked at all.
Module.cpp depends on new CPlusPlusLanguageMethod.cpp but nothing depends on updated CPlusPlusLanguage.cpp

https://github.com/llvm/llvm-project/pull/132274


More information about the lldb-commits mailing list