Add a UTF8 to UTF16 conversion wrapper for use in the pdb dumper
authorReid Kleckner <reid@kleckner.net>
Mon, 26 Jan 2015 19:51:00 +0000 (19:51 +0000)
committerReid Kleckner <reid@kleckner.net>
Mon, 26 Jan 2015 19:51:00 +0000 (19:51 +0000)
commit91ccead42a3f84760f2d9794bf8d78c879e9cbb5
tree55ae68462caa734da3257fbc427c7d850496ecbb
parent7936ef08bd1c3f6a33869382c8eb950c8508da01
Add a UTF8 to UTF16 conversion wrapper for use in the pdb dumper

This can also be used instead of the WindowsSupport.h ConvertUTF8ToUTF16
helpers, but that will require massaging some character types. The
Windows support routines want wchar_t output, but wchar_t is often 32
bits on non-Windows OSs.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227122 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/ConvertUTF.h
lib/Support/ConvertUTFWrapper.cpp
unittests/Support/ConvertUTFTest.cpp