llvm-6502/lib/Support/Windows
Rafael Espindola 52fa0d066a Add writeFileWithSystemEncoding to LibLLVMSuppor.
This patch adds to LLVMSupport the capability of writing files with
international characters encoded in the current system encoding. This
is relevant for Windows, where we can either use UTF16 or the current
code page (the legacy Windows international characters). On UNIX, the
file is always saved in UTF8.

This will be used in a patch for clang to thoroughly support response
files creation when calling other tools, addressing PR15171. On
Windows, to correctly support internationalization, we need the
ability to write response files both in UTF16 or the current code
page, depending on the tool we will call. GCC for mingw, for instance,
requires files to be encoded in the current code page. MSVC tools
requires files to be encoded in UTF16.

Patch by Rafael Auler!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217068 91177308-0d34-0410-b5e6-96231b3b80d8
2014-09-03 20:02:00 +00:00
..
DynamicLibrary.inc Try to fix the windows build. 2014-06-12 21:53:57 +00:00
explicit_symbols.inc
Host.inc Windows: canonicalise the default windows triple 2014-03-29 01:08:53 +00:00
Memory.inc Remove 'using std::errro_code' from lib. 2014-06-13 02:24:39 +00:00
Mutex.inc Rename Windows.h to WindowsSupport.h to avoid ambiguity 2014-02-12 21:26:20 +00:00
Path.inc Add writeFileWithSystemEncoding to LibLLVMSuppor. 2014-09-03 20:02:00 +00:00
Process.inc Windows: Don't wildcard expand /? or -? 2014-07-24 21:09:45 +00:00
Program.inc Add writeFileWithSystemEncoding to LibLLVMSuppor. 2014-09-03 20:02:00 +00:00
RWMutex.inc Rename Windows.h to WindowsSupport.h to avoid ambiguity 2014-02-12 21:26:20 +00:00
Signals.inc Use simpler form of llvm::sys::fs::remove. 2014-02-23 13:37:37 +00:00
ThreadLocal.inc Fix a -Wunused-local-typedefs warning 2014-07-14 22:46:45 +00:00
TimeValue.inc Use raw_ostream and Format.h on Windows so that we don't have to roll 2014-04-28 01:57:46 +00:00
Watchdog.inc Add a new watchdog timer interface. The interface does not permit handling timeouts, so 2013-03-26 01:27:52 +00:00
WindowsSupport.h Add writeFileWithSystemEncoding to LibLLVMSuppor. 2014-09-03 20:02:00 +00:00