hanchenye-llvm-project/compiler-rt/lib/profile
Vedant Kumar 6ff82bd0ec [profile] Mark lprofCurFilename as COMPILER_RT_WEAK
This makes __llvm_profile_set_filename() work across dylib boundaries on
Darwin.

This functionality was originally meant to work on all platforms, but
was moved to a Linux-only directory with r272404. The root cause of the
test failure on Darwin was that lprofCurFilename was not marked weak.
Each dylib maintained its own copy of the variable due to the two-level
namespace.

Tested with check-profile (on Darwin). I don't expect this to regress
other platforms.

Differential Revision: https://reviews.llvm.org/D25707

llvm-svn: 284440
2016-10-18 00:02:28 +00:00
..
CMakeLists.txt [CMake] Connect Compiler-RT targets to LLVM Runtimes directory 2016-08-26 20:52:22 +00:00
GCDAProfiling.c Define compatibility flag if not defined with -std=c++ 2016-07-25 23:12:53 +00:00
InstrProfData.inc [Profile] cleanup: do not reference name directly of vars shared between rt and llvm 2016-07-22 04:08:16 +00:00
InstrProfiling.c [Profile] Remove unused variable 2016-09-22 21:12:40 +00:00
InstrProfiling.h [Profile] Implement new API __llvm_profile_dump 2016-08-09 04:21:14 +00:00
InstrProfilingBuffer.c Reapply r268840: [profile] Simplify value profile writing 2016-05-10 00:17:31 +00:00
InstrProfilingFile.c [profile] Mark lprofCurFilename as COMPILER_RT_WEAK 2016-10-18 00:02:28 +00:00
InstrProfilingInternal.h [Profile] Remove unused variable 2016-09-22 21:12:40 +00:00
InstrProfilingMerge.c [profile] in-process merging support part-3 2016-06-08 23:43:56 +00:00
InstrProfilingMergeFile.c [PGO] internal API name cleanups (for better consistency) 2016-03-06 04:18:13 +00:00
InstrProfilingPlatformDarwin.c [profile] initialize static pool properly 2016-05-22 16:36:03 +00:00
InstrProfilingPlatformLinux.c [profile] initialize static pool properly 2016-05-22 16:36:03 +00:00
InstrProfilingPlatformOther.c [profile] initialize static pool properly 2016-05-22 16:36:03 +00:00
InstrProfilingPort.h [Profile] instroduce portability macro for dir separator(s 2016-07-15 18:48:14 +00:00
InstrProfilingRuntime.cc [Profile] cleanup: do not reference name directly of vars shared between rt and llvm 2016-07-22 04:08:16 +00:00
InstrProfilingUtil.c [Profile] introduce reusable internal interfaces to find dir separator \NFC 2016-07-19 20:48:00 +00:00
InstrProfilingUtil.h [Profile] introduce reusable internal interfaces to find dir separator \NFC 2016-07-19 20:48:00 +00:00
InstrProfilingValue.c Fix most MSVC warnings in compiler-rt profiling library 2016-06-17 18:12:50 +00:00
InstrProfilingWriter.c Avoid leak. Free before resetting. 2016-05-16 23:28:35 +00:00
WindowsMMap.c profile: add missing include for Windows 2016-08-30 20:15:44 +00:00
WindowsMMap.h Fix most MSVC warnings in compiler-rt profiling library 2016-06-17 18:12:50 +00:00