commit | 9b92e2be3082e23ff5135f4dde495d6ea6510142 | [log] [tgz] |
---|---|---|
author | Daniel Dunbar <daniel@zuster.org> | Fri Sep 23 23:23:36 2011 +0000 |
committer | Daniel Dunbar <daniel@zuster.org> | Fri Sep 23 23:23:36 2011 +0000 |
tree | a3c60c5182995eb9e6cf3d4d736dd26d4d679c08 | |
parent | 44653709fdc26ae93eea9c08a82725cfc9532243 [diff] |
sys::Process: Add a SetWorkingDirectory method. llvm-svn: 140433
diff --git a/llvm/lib/Support/Unix/Process.inc b/llvm/lib/Support/Unix/Process.inc index 5cdb11c..da440fd 100644 --- a/llvm/lib/Support/Unix/Process.inc +++ b/llvm/lib/Support/Unix/Process.inc
@@ -293,3 +293,7 @@ const char *Process::ResetColor() { return "\033[0m"; } + +void Process::SetWorkingDirectory(std::string Path) { + ::chdir(Path.c_str()); +}