[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)
commit24a148b1d41ec1ac38ef15f39f38073ce50a1bfa
treef462b71266443357f2e86e98ad25d6245b79db1a
parent28ee2d1b0973df3295cd7eadb45473037e530ed9
[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

llvm-svn: 288264
18 files changed:
llvm/lib/Fuzzer/FuzzerCorpus.h
llvm/lib/Fuzzer/FuzzerDefs.h
llvm/lib/Fuzzer/FuzzerDictionary.h
llvm/lib/Fuzzer/FuzzerDriver.cpp
llvm/lib/Fuzzer/FuzzerExtFunctionsWeak.cpp
llvm/lib/Fuzzer/FuzzerIO.cpp
llvm/lib/Fuzzer/FuzzerIO.h [new file with mode: 0644]
llvm/lib/Fuzzer/FuzzerInternal.h
llvm/lib/Fuzzer/FuzzerLoop.cpp
llvm/lib/Fuzzer/FuzzerMutate.cpp
llvm/lib/Fuzzer/FuzzerSHA1.cpp
llvm/lib/Fuzzer/FuzzerSHA1.h [new file with mode: 0644]
llvm/lib/Fuzzer/FuzzerTracePC.cpp
llvm/lib/Fuzzer/FuzzerTraceState.cpp
llvm/lib/Fuzzer/FuzzerUtil.cpp
llvm/lib/Fuzzer/FuzzerUtil.h [new file with mode: 0644]
llvm/lib/Fuzzer/FuzzerUtilDarwin.cpp
llvm/lib/Fuzzer/FuzzerUtilLinux.cpp