diff options
| author | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-03-11 22:05:42 +0000 |
|---|---|---|
| committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-03-11 22:05:42 +0000 |
| commit | afc50b3ed4b97d9060d9d56fde840217875492a6 (patch) | |
| tree | 583481e05c6329f8e54aef7772cbbba3ca77b200 /llvm/lib/Support/Windows | |
| parent | 3b83496dd40aab5c18461dc2f2c986f012fb98db (diff) | |
| download | bcm5719-llvm-afc50b3ed4b97d9060d9d56fde840217875492a6.tar.gz bcm5719-llvm-afc50b3ed4b97d9060d9d56fde840217875492a6.zip | |
support: add a utility function to normalise path separators
Add a utility function to convert the Windows path separator to Unix style path
separators. This is used by a subsequent change in clang to enable the use of
Windows SDK headers on Linux.
llvm-svn: 203611
Diffstat (limited to 'llvm/lib/Support/Windows')
| -rw-r--r-- | llvm/lib/Support/Windows/Path.inc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Support/Windows/Path.inc b/llvm/lib/Support/Windows/Path.inc index a555f3e794e..e59888e3858 100644 --- a/llvm/lib/Support/Windows/Path.inc +++ b/llvm/lib/Support/Windows/Path.inc @@ -158,6 +158,11 @@ error_code create_directory(const Twine &path, bool IgnoreExisting) { return error_code::success(); } +error_code normalize_separators(SmallVectorImpl<char> &Path) { + (void) Path; + return error_code::success(); +} + // We can't use symbolic links for windows. error_code create_link(const Twine &to, const Twine &from) { // Get arguments. |

