================
@@ -138,6 +138,17 @@ class ModuleSpec {
/// the specified module.
void SetTarget(std::shared_ptr<Target> target) { m_target_wp = target; }
+ lldb::PlatformSP GetPlatformSP() const { return m_platform_wp.lock(); }
+
+ /// Set the platform to be used when resolving a module.
+ ///
+ /// This is useful when a Target is not yet available (e.g., during target
+ /// creation) but a Platform is. The platform can be used to invoke locate
+ /// module callbacks and other platform-specific module resolution logic.
+ void SetPlatform(std::shared_ptr<Platform> platform) {
----------------
clayborg wrote:
yes, use `lldb::PlatformSP`
https://github.com/llvm/llvm-project/pull/176266
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits