]> granicus.if.org Git - llvm/commit
[Support] Add sys::fs::set_current_path() (aka chdir)
authorPavel Labath <labath@google.com>
Tue, 24 Jan 2017 10:32:03 +0000 (10:32 +0000)
committerPavel Labath <labath@google.com>
Tue, 24 Jan 2017 10:32:03 +0000 (10:32 +0000)
commitf61f422e4e44c9ab5609e6924acdb69b80263523
treeda7c95d6d663ccbc0e95a1b402e615ad8f12e823
parent7664071405d5207ca85ec3ba2e65ae6e20f91267
[Support] Add sys::fs::set_current_path() (aka chdir)

Summary:
This adds a cross-platform way of setting the current working directory
analogous to the existing current_path() function used for retrieving
it. The function will be used in lldb.

Reviewers: rafael, silvas, zturner

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D29035

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292907 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/FileSystem.h
lib/Support/Unix/Path.inc
lib/Support/Windows/Path.inc
unittests/Support/Path.cpp