[Swift] Use ModuleDecl::collectLinkLibraries() correctly
[Swift] Use ModuleDecl::collectLinkLibraries() correctly

apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb