diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2010-12-17 18:59:09 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2010-12-17 18:59:09 +0000 |
commit | cb520cd8cb3cda5fda63dc1d155b58411170be08 (patch) | |
tree | 8e2fe569c5e046fe127dbcba80a40aaef4498c3c /llvm/lib/Support/Windows | |
parent | 06ab8b648c17a8dadb33be3dd628c93b3a895dde (diff) | |
download | bcm5719-llvm-cb520cd8cb3cda5fda63dc1d155b58411170be08.tar.gz bcm5719-llvm-cb520cd8cb3cda5fda63dc1d155b58411170be08.zip |
Missed some StringRefRefs.
llvm-svn: 122077
Diffstat (limited to 'llvm/lib/Support/Windows')
-rw-r--r-- | llvm/lib/Support/Windows/PathV2.inc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/Support/Windows/PathV2.inc b/llvm/lib/Support/Windows/PathV2.inc index 3b02aba09c5..c0c70e04726 100644 --- a/llvm/lib/Support/Windows/PathV2.inc +++ b/llvm/lib/Support/Windows/PathV2.inc @@ -41,8 +41,7 @@ namespace { ::GetProcAddress(::GetModuleHandleA("kernel32.dll"), "CreateSymbolicLinkW")); - error_code UTF8ToUTF16(const StringRef &utf8, - SmallVectorImpl<wchar_t> &utf16) { + error_code UTF8ToUTF16(StringRef utf8, SmallVectorImpl<wchar_t> &utf16) { int len = ::MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, utf8.begin(), utf8.size(), utf16.begin(), 0); @@ -603,8 +602,7 @@ retry_create_file: return success; } -error_code directory_iterator_construct(directory_iterator& it, - const StringRef &path) { +error_code directory_iterator_construct(directory_iterator &it, StringRef path){ SmallVector<wchar_t, 128> path_utf16; if (error_code ec = UTF8ToUTF16(path, |