[Lldb-commits] [clang] [lldb] [Clang][LLDB] Refactor trap reason demangling out of LLDB and into Clang (PR #165996)

Michael Buch via lldb-commits lldb-commits at lists.llvm.org
Sun Nov 2 15:11:59 PST 2025


================
@@ -97,6 +97,9 @@ add_lldb_library(lldbTarget
     lldbUtility
     lldbValueObject
     lldbPluginProcessUtility
+
+  CLANG_LIBS
+    clangCodeGen
----------------
Michael137 wrote:

> Can you elaborate on this restriction? Given that LLDB already links against Clang it's not obvious to me why linking against clangCodeGen would be a problem

AFAIU the core of LLDB is supposed to be as generic as possible. Plugins are supposed to provide the abstractions over programming language/runtime specifics. There's some discussion here: https://lldb.llvm.org/resources/contributing.html#lldb-plugins-and-their-dependencies

I'm not sure whether there's more to it other than "it's LLDB's preferred architectural design". @JDevlieghere @jimingham will be able to say more on this

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


More information about the lldb-commits mailing list