diff options
author | Kostya Serebryany <kcc@google.com> | 2016-11-30 21:53:32 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2016-11-30 21:53:32 +0000 |
commit | 1cba0a96e7def030a89bd1bf10c355e515b0957b (patch) | |
tree | 38fb4bd954f2db20c97d0484c8a9939c7052eccb /llvm/lib/Fuzzer/FuzzerIO.h | |
parent | 5abac1769f36e4f7d9d6c3a408a1356490fc76e0 (diff) | |
download | bcm5719-llvm-1cba0a96e7def030a89bd1bf10c355e515b0957b.tar.gz bcm5719-llvm-1cba0a96e7def030a89bd1bf10c355e515b0957b.zip |
[libFuzzer] extend -print_coverage to print the comma-separated list of covered dirs. Note: the Windows stub for DirName is left unimplemented
llvm-svn: 288276
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 b1ac69c8088..39634f93fec 100644 --- a/llvm/lib/Fuzzer/FuzzerIO.h +++ b/llvm/lib/Fuzzer/FuzzerIO.h @@ -33,6 +33,9 @@ void ReadDirToVectorOfUnits(const char *Path, std::vector<Unit> *V, std::string DirPlusFile(const std::string &DirPath, const std::string &FileName); +// Returns the name of the dir, similar to the 'dirname' utility. +std::string DirName(const std::string &FileName); + void DupAndCloseStderr(); void CloseStdout(); |