diff options
author | Jonathan Metzman <metzman@chromium.org> | 2019-01-28 17:51:13 +0000 |
---|---|---|
committer | Jonathan Metzman <metzman@chromium.org> | 2019-01-28 17:51:13 +0000 |
commit | 8f7fc95ab7aab395ec06affa8c705eee2432fcdc (patch) | |
tree | 953affcc6200ad6a1674576b630fadb21e8dfc38 /compiler-rt/lib/fuzzer | |
parent | 729fcf179356c1dd672ea060a653ebbe9fe9cbf6 (diff) | |
download | bcm5719-llvm-8f7fc95ab7aab395ec06affa8c705eee2432fcdc.tar.gz bcm5719-llvm-8f7fc95ab7aab395ec06affa8c705eee2432fcdc.zip |
[libFuzzer][Windows] Use dllexport for all declarations in FuzzerInterface.h
Summary:
Use dllexport for all declarations in FuzzerInterface.h Use it for clang
even though clang supports default visibility attribute to prevent a
warning from being thrown when LLVMFuzzerMutate is defined with dllexport.
This makes `FUZZER_INTERFACE_VISIBILITY` (FuzzerInterface.h) consistent with
`ATTRIBUTE_INTERFACE` (FuzzerDefs.h) when using clang on Windows.
Reviewers: vitalybuka, morehouse
Reviewed By: morehouse
Differential Revision: https://reviews.llvm.org/D57305
llvm-svn: 352395
Diffstat (limited to 'compiler-rt/lib/fuzzer')
-rw-r--r-- | compiler-rt/lib/fuzzer/FuzzerInterface.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/fuzzer/FuzzerInterface.h b/compiler-rt/lib/fuzzer/FuzzerInterface.h index 415b888b86d..4f62822eac0 100644 --- a/compiler-rt/lib/fuzzer/FuzzerInterface.h +++ b/compiler-rt/lib/fuzzer/FuzzerInterface.h @@ -27,7 +27,7 @@ extern "C" { // Define FUZZER_INTERFACE_VISIBILITY to set default visibility in a way that // doesn't break MSVC. -#if defined(_MSC_VER) && !defined(__clang__) +#if defined(_WIN32) #define FUZZER_INTERFACE_VISIBILITY __declspec(dllexport) #else #define FUZZER_INTERFACE_VISIBILITY __attribute__((visibility("default"))) |