summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2011-09-23 23:23:36 +0000
committerDaniel Dunbar <daniel@zuster.org>2011-09-23 23:23:36 +0000
commitbb0a6126cf1372e3ba90f0f6ff16f7f4d0381105 (patch)
treed0cb7d2de894a45f4bcccb5a5fb7bf5f4c7a88ce /include
parentb5b7c96ce4e120297304e5cef5b4b0af8e9e8691 (diff)
downloadllvm-bb0a6126cf1372e3ba90f0f6ff16f7f4d0381105.tar.gz
llvm-bb0a6126cf1372e3ba90f0f6ff16f7f4d0381105.tar.bz2
llvm-bb0a6126cf1372e3ba90f0f6ff16f7f4d0381105.tar.xz
sys::Process: Add a SetWorkingDirectory method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140433 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Support/Process.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Support/Process.h b/include/llvm/Support/Process.h
index 33799229ff..27ef267009 100644
--- a/include/llvm/Support/Process.h
+++ b/include/llvm/Support/Process.h
@@ -138,6 +138,9 @@ namespace sys {
/// Resets the terminals colors, or returns an escape sequence to do so.
static const char *ResetColor();
+
+ /// Change the program working directory to that given by \arg Path.
+ static void SetWorkingDirectory(std::string Path);
/// @}
};
}