summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Fuzzer/FuzzerExtFunctionsWeak.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2016-11-30 19:06:14 +0000
committerZachary Turner <zturner@google.com>2016-11-30 19:06:14 +0000
commit24a148b1d41ec1ac38ef15f39f38073ce50a1bfa (patch)
treef462b71266443357f2e86e98ad25d6245b79db1a /llvm/lib/Fuzzer/FuzzerExtFunctionsWeak.cpp
parent28ee2d1b0973df3295cd7eadb45473037e530ed9 (diff)
downloadbcm5719-llvm-24a148b1d41ec1ac38ef15f39f38073ce50a1bfa.tar.gz
bcm5719-llvm-24a148b1d41ec1ac38ef15f39f38073ce50a1bfa.zip
[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
Diffstat (limited to 'llvm/lib/Fuzzer/FuzzerExtFunctionsWeak.cpp')
-rw-r--r--llvm/lib/Fuzzer/FuzzerExtFunctionsWeak.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerExtFunctionsWeak.cpp b/llvm/lib/Fuzzer/FuzzerExtFunctionsWeak.cpp
index cd4371ad44f..cb3b31105d5 100644
--- a/llvm/lib/Fuzzer/FuzzerExtFunctionsWeak.cpp
+++ b/llvm/lib/Fuzzer/FuzzerExtFunctionsWeak.cpp
@@ -16,6 +16,7 @@
#if LIBFUZZER_LINUX
#include "FuzzerExtFunctions.h"
+#include "FuzzerIO.h"
extern "C" {
// Declare these symbols as weak to allow them to be optionally defined.
OpenPOWER on IntegriCloud