]> granicus.if.org Git - llvm/commit
[LibFuzzer] Split up some functions among different headers.
authorZachary Turner <zturner@google.com>
Wed, 30 Nov 2016 19:06:14 +0000 (19:06 +0000)
committerZachary Turner <zturner@google.com>
Wed, 30 Nov 2016 19:06:14 +0000 (19:06 +0000)
commit1a3900e81ea3e5993040700eedacf1416904d0b7
treee556c158d39917cccf97c18b9d9b861f4adb836e
parentee3dedb147f6a90e7459eb6bebcbf554f8c7c593
[LibFuzzer] Split up some functions among different headers.

In an effort to get libfuzzer working on Windows, we need to make
a distinction between what functions require platform specific
code (e.g. different code on Windows vs Linux) and what code
doesn't.  IO functions, for example, tend to be platform
specific.

This patch separates out some of the functions which will need
to have platform specific implementations into different headers,
so that we can then provide different implementations for each
platform.

Aside from that, this patch contains no functional change.  It
is purely a re-organization.

Patch by Marcos Pividori
Differential Revision: https://reviews.llvm.org/D27230

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288264 91177308-0d34-0410-b5e6-96231b3b80d8
18 files changed:
lib/Fuzzer/FuzzerCorpus.h
lib/Fuzzer/FuzzerDefs.h
lib/Fuzzer/FuzzerDictionary.h
lib/Fuzzer/FuzzerDriver.cpp
lib/Fuzzer/FuzzerExtFunctionsWeak.cpp
lib/Fuzzer/FuzzerIO.cpp
lib/Fuzzer/FuzzerIO.h [new file with mode: 0644]
lib/Fuzzer/FuzzerInternal.h
lib/Fuzzer/FuzzerLoop.cpp
lib/Fuzzer/FuzzerMutate.cpp
lib/Fuzzer/FuzzerSHA1.cpp
lib/Fuzzer/FuzzerSHA1.h [new file with mode: 0644]
lib/Fuzzer/FuzzerTracePC.cpp
lib/Fuzzer/FuzzerTraceState.cpp
lib/Fuzzer/FuzzerUtil.cpp
lib/Fuzzer/FuzzerUtil.h [new file with mode: 0644]
lib/Fuzzer/FuzzerUtilDarwin.cpp
lib/Fuzzer/FuzzerUtilLinux.cpp