diff options
author | Kostya Serebryany <kcc@google.com> | 2017-01-05 04:32:19 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2017-01-05 04:32:19 +0000 |
commit | 2648243ebdb1df3dbef182fa062bf1a2a2d06109 (patch) | |
tree | bef6592e14629e427405c2992d8e2d2216236898 /llvm/lib/Fuzzer/FuzzerIO.h | |
parent | 6196eaf0ae339ecfe8523eda37b1c758560786d2 (diff) | |
download | bcm5719-llvm-2648243ebdb1df3dbef182fa062bf1a2a2d06109.tar.gz bcm5719-llvm-2648243ebdb1df3dbef182fa062bf1a2a2d06109.zip |
[libFuzzer] use /tmp (or $TMPDIR, if present) to store temp files during merge
llvm-svn: 291078
Diffstat (limited to 'llvm/lib/Fuzzer/FuzzerIO.h')
-rw-r--r-- | llvm/lib/Fuzzer/FuzzerIO.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerIO.h b/llvm/lib/Fuzzer/FuzzerIO.h index 741fecf415b..15bfd3d3472 100644 --- a/llvm/lib/Fuzzer/FuzzerIO.h +++ b/llvm/lib/Fuzzer/FuzzerIO.h @@ -37,6 +37,9 @@ std::string DirPlusFile(const std::string &DirPath, // Returns the name of the dir, similar to the 'dirname' utility. std::string DirName(const std::string &FileName); +// Returns path to a TmpDir. +std::string TmpDir(); + void DupAndCloseStderr(); void CloseStdout(); |