Skip to content

[pull] swiftwasm from swift/master #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lldb/include/lldb/Symbol/SwiftASTContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -1240,8 +1240,8 @@ class SwiftASTContext : public TypeSystemSwift {

/// Return the name of the OS-specific subdirectory containing the
/// Swift stdlib needed for \p target.
static llvm::StringRef GetSwiftStdlibOSDir(const llvm::Triple &target,
const llvm::Triple &host);
static std::string GetSwiftStdlibOSDir(const llvm::Triple &target,
const llvm::Triple &host);
};

class SwiftASTContextForExpressions : public SwiftASTContext {
Expand Down
4 changes: 2 additions & 2 deletions lldb/source/Symbol/SwiftASTContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -995,8 +995,8 @@ static SDKTypeMinVersion GetSDKType(const llvm::Triple &target,

/// Return the name of the OS-specific subdirectory containing the
/// Swift stdlib needed for \p target.
StringRef SwiftASTContext::GetSwiftStdlibOSDir(const llvm::Triple &target,
const llvm::Triple &host) {
std::string SwiftASTContext::GetSwiftStdlibOSDir(const llvm::Triple &target,
const llvm::Triple &host) {
auto sdk = GetSDKType(target, host);
XcodeSDK::Info sdk_info;
sdk_info.type = sdk.sdk_type;
Expand Down
4 changes: 2 additions & 2 deletions lldb/unittests/Symbol/TestSwiftASTContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ struct SwiftASTContextTester : public SwiftASTContext {
platform_sdk_path, swift_dir, swift_stdlib_os_dir, xcode_contents_path,
toolchain_path, cl_tools_path);
}
static llvm::StringRef GetSwiftStdlibOSDir(const llvm::Triple &target,
const llvm::Triple &host) {
static std::string GetSwiftStdlibOSDir(const llvm::Triple &target,
const llvm::Triple &host) {
return SwiftASTContext::GetSwiftStdlibOSDir(target, host);
}
};
Expand Down