summaryrefslogtreecommitdiff
path: root/include/llvm/Support/Process.h
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2012-01-15 08:41:35 +0000
committerChandler Carruth <chandlerc@gmail.com>2012-01-15 08:41:35 +0000
commit4aab4ab340863d87f9c566b69099ce60dd8762be (patch)
treecb0a05c82bf1c07b48b0cf504549311f72d41f73 /include/llvm/Support/Process.h
parent49c0a9ac989848844f0eb8894ef7ae6b8dde3495 (diff)
downloadllvm-4aab4ab340863d87f9c566b69099ce60dd8762be.tar.gz
llvm-4aab4ab340863d87f9c566b69099ce60dd8762be.tar.bz2
llvm-4aab4ab340863d87f9c566b69099ce60dd8762be.tar.xz
Remove SetWorkingDirectory from the Process interface. Nothing in LLVM
or Clang is using this, and it would be hard to use it correctly given the thread hostility of the function. Also, it never checked the return which is rather dangerous with chdir. If someone was in fact using this, please let me know, as well as what the usecase actually is so that I can add it back and make it more correct and secure to use. (That said, it's never going to be "safe" per-se, but we could at least document the risks...) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148211 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/Process.h')
-rw-r--r--include/llvm/Support/Process.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/llvm/Support/Process.h b/include/llvm/Support/Process.h
index 27ef267009..33799229ff 100644
--- a/include/llvm/Support/Process.h
+++ b/include/llvm/Support/Process.h
@@ -138,9 +138,6 @@ 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);
/// @}
};
}