mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
Missed some StringRefRefs.
llvm-svn: 122077
This commit is contained in:
parent
9017f2d179
commit
a7366b3f19
@ -39,7 +39,7 @@ namespace {
|
|||||||
|
|
||||||
const llvm::error_code success;
|
const llvm::error_code success;
|
||||||
|
|
||||||
StringRef find_first_component(const StringRef &path) {
|
StringRef find_first_component(StringRef path) {
|
||||||
// Look for this first component in the following order.
|
// Look for this first component in the following order.
|
||||||
// * empty (in this case we return an empty string)
|
// * empty (in this case we return an empty string)
|
||||||
// * either C: or {//,\\}net.
|
// * either C: or {//,\\}net.
|
||||||
|
@ -41,8 +41,7 @@ namespace {
|
|||||||
::GetProcAddress(::GetModuleHandleA("kernel32.dll"),
|
::GetProcAddress(::GetModuleHandleA("kernel32.dll"),
|
||||||
"CreateSymbolicLinkW"));
|
"CreateSymbolicLinkW"));
|
||||||
|
|
||||||
error_code UTF8ToUTF16(const StringRef &utf8,
|
error_code UTF8ToUTF16(StringRef utf8, SmallVectorImpl<wchar_t> &utf16) {
|
||||||
SmallVectorImpl<wchar_t> &utf16) {
|
|
||||||
int len = ::MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS,
|
int len = ::MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS,
|
||||||
utf8.begin(), utf8.size(),
|
utf8.begin(), utf8.size(),
|
||||||
utf16.begin(), 0);
|
utf16.begin(), 0);
|
||||||
@ -603,8 +602,7 @@ retry_create_file:
|
|||||||
return success;
|
return success;
|
||||||
}
|
}
|
||||||
|
|
||||||
error_code directory_iterator_construct(directory_iterator& it,
|
error_code directory_iterator_construct(directory_iterator &it, StringRef path){
|
||||||
const StringRef &path) {
|
|
||||||
SmallVector<wchar_t, 128> path_utf16;
|
SmallVector<wchar_t, 128> path_utf16;
|
||||||
|
|
||||||
if (error_code ec = UTF8ToUTF16(path,
|
if (error_code ec = UTF8ToUTF16(path,
|
||||||
|
Loading…
Reference in New Issue
Block a user