[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)
commit06c847e83e558f0cc6fea742498b2730eb6837c6
tree8f823c8d8da88e220787734872375279ef139d94
parent5a5ebb7f9fa7fa82c0c466a36a90e5c18bb13073
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186426 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/ConvertUTF.h
lib/Support/ConvertUTFWrapper.cpp
unittests/Support/CMakeLists.txt
unittests/Support/ConvertUTFTest.cpp [new file with mode: 0644]