Split openFileForRead into Windows and Unix versions.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 17 Jul 2013 14:58:25 +0000 (14:58 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 17 Jul 2013 14:58:25 +0000 (14:58 +0000)
commita0d9b6b69322b27fae1c646271b5d4cc44a7bce5
treeb9800e9a52d1c9eb5727d2db575463f25071a81c
parentec7cd269680336be3eb0a99e1752bba05eb07d38
Split openFileForRead into Windows and Unix versions.

This has some advantages:

* Lets us use native, utf16 windows functions.
* Easy to produce good errors on windows about trying to use a
directory when we want a file.
* Simplifies the unix version a bit.

llvm-svn: 186511
llvm/lib/Support/Path.cpp
llvm/lib/Support/Unix/Path.inc
llvm/lib/Support/Windows/Path.inc
llvm/test/Object/directory.ll