[Support] Add a Unicode conversion wrapper from UTF16 to UTF8
authorReid Kleckner <reid@kleckner.net>
Tue, 16 Jul 2013 17:14:33 +0000 (17:14 +0000)
committerReid Kleckner <reid@kleckner.net>
Tue, 16 Jul 2013 17:14:33 +0000 (17:14 +0000)
commit7df03c2e3096ef533e28406b20f614d2b34ca7e3
tree7d99a2d26e7593259e880e9c3939202dbb09e357
parent9caa8f7ba7b74bce41dc37b4e9ac61096c65683e
[Support] Add a Unicode conversion wrapper from UTF16 to UTF8

This is to support parsing UTF16 response files in LLVM/lib/Option for
lld and clang.

Reviewers: hans

Differential Revision: http://llvm-reviews.chandlerc.com/D1138

llvm-svn: 186426
llvm/include/llvm/Support/ConvertUTF.h
llvm/lib/Support/ConvertUTFWrapper.cpp
llvm/unittests/Support/CMakeLists.txt
llvm/unittests/Support/ConvertUTFTest.cpp [new file with mode: 0644]