summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Fuzzer/FuzzerInternal.h
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2015-09-02 19:08:08 +0000
committerKostya Serebryany <kcc@google.com>2015-09-02 19:08:08 +0000
commita9346c2e652e62d4de5e38e3402defd729d0286f (patch)
tree3a63104bdabfe2f7a757157feb45df7f464bc95a /llvm/lib/Fuzzer/FuzzerInternal.h
parenta99ab1f5366100824241f410af9c32a434293f50 (diff)
downloadbcm5719-llvm-a9346c2e652e62d4de5e38e3402defd729d0286f.tar.gz
bcm5719-llvm-a9346c2e652e62d4de5e38e3402defd729d0286f.zip
[libFuzzer] honour -only_ascii=1 when reading the initial corpus. Also, remove ugly #ifdef
llvm-svn: 246689
Diffstat (limited to 'llvm/lib/Fuzzer/FuzzerInternal.h')
-rw-r--r--llvm/lib/Fuzzer/FuzzerInternal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerInternal.h b/llvm/lib/Fuzzer/FuzzerInternal.h
index d9dc5283689..c44f0ea34d5 100644
--- a/llvm/lib/Fuzzer/FuzzerInternal.h
+++ b/llvm/lib/Fuzzer/FuzzerInternal.h
@@ -53,6 +53,7 @@ void ComputeSHA1(const uint8_t *Data, size_t Len, uint8_t *Out);
// Changes U to contain only ASCII (isprint+isspace) characters.
// Returns true iff U has been changed.
bool ToASCII(Unit &U);
+bool IsASCII(const Unit &U);
int NumberOfCpuCores();
OpenPOWER on IntegriCloud