aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support/Windows
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2010-12-17 18:59:09 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2010-12-17 18:59:09 +0000
commit7fb866643e76dc598473b666439a42a11d97a58c (patch)
tree40ad1032f2f9aa834ac8f6fa2baa633b7adbd221 /lib/Support/Windows
parentf0db261e97f9c199e584b2a73095a7e36f4eb3cc (diff)
downloadexternal_llvm-7fb866643e76dc598473b666439a42a11d97a58c.zip
external_llvm-7fb866643e76dc598473b666439a42a11d97a58c.tar.gz
external_llvm-7fb866643e76dc598473b666439a42a11d97a58c.tar.bz2
Missed some StringRefRefs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122077 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Windows')
-rw-r--r--lib/Support/Windows/PathV2.inc6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Support/Windows/PathV2.inc b/lib/Support/Windows/PathV2.inc
index 3b02aba..c0c70e0 100644
--- a/lib/Support/Windows/PathV2.inc
+++ b/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,