[llvm] r279143 - [libFuzzer] add more __attribute__((visibility("default")))

Kostya Serebryany via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 18 13:52:53 PDT 2016


Author: kcc
Date: Thu Aug 18 15:52:52 2016
New Revision: 279143

URL: http://llvm.org/viewvc/llvm-project?rev=279143&view=rev
Log:
[libFuzzer] add more __attribute__((visibility("default")))

Modified:
    llvm/trunk/lib/Fuzzer/FuzzerTracePC.cpp

Modified: llvm/trunk/lib/Fuzzer/FuzzerTracePC.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Fuzzer/FuzzerTracePC.cpp?rev=279143&r1=279142&r2=279143&view=diff
==============================================================================
--- llvm/trunk/lib/Fuzzer/FuzzerTracePC.cpp (original)
+++ llvm/trunk/lib/Fuzzer/FuzzerTracePC.cpp Thu Aug 18 15:52:52 2016
@@ -37,11 +37,13 @@ static void HandlePC(uint32_t PC) {
 } // namespace fuzzer
 
 extern "C" {
+__attribute__((visibility("default")))
 void __sanitizer_cov_trace_pc() {
   fuzzer::HandlePC(static_cast<uint32_t>(
       reinterpret_cast<uintptr_t>(__builtin_return_address(0))));
 }
 
+__attribute__((visibility("default")))
 void __sanitizer_cov_trace_pc_indir(int *) {
   // Stub to allow linking with code built with
   // -fsanitize=indirect-calls,trace-pc.




More information about the llvm-commits mailing list