1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00
llvm-mirror/lib/Transforms/Instrumentation
Fangrui Song b331e4f4c1 Revert D103717 "[InstrProfiling] Make __profd_ unconditionally private for ELF"
This reverts commit 76d0747e0807307780ba84cbd7e5c80b20c26bd7.

If a group has `__llvm_prf_vals` due to static value profiler counters
(`NS!=0`), we cannot make `__llvm_prf_data` private, because a prevailing text
section may reference `__llvm_prf_data` and will cause a `relocation refers to a
discarded section` linker error.

Note: while a `__profc_` group is non-prevailing, it may be referenced by a
prevailing text section due to inlining.

```
group section [   66] `.group' [__profc__ZN5clang20EmitClangDeclContextERN4llvm12RecordKeeperERNS0_11raw_ostreamE] contains 4 sections:
   [Index]    Name
   [   67]   __llvm_prf_cnts
   [   68]   __llvm_prf_vals
   [   69]   __llvm_prf_data
   [   70]   .rela__llvm_prf_data
```
2021-06-17 23:38:17 -07:00
..
AddressSanitizer.cpp [asan] Remove Asan, Ubsan support of RTEMS and Myriad 2021-06-15 12:59:05 -07:00
BoundsChecking.cpp BoundsChecking.cpp - tidy implicit header dependencies. NFCI. 2021-06-13 17:08:15 +01:00
CFGMST.h
CGProfile.cpp
CMakeLists.txt
ControlHeightReduction.cpp [CHR] Don't run ControlHeightReduction if any BB has address taken 2021-06-12 10:29:53 -07:00
DataFlowSanitizer.cpp [dfsan] Replace dfs$ prefix with .dfsan suffix 2021-06-17 22:42:47 -07:00
GCOVProfiling.cpp
HWAddressSanitizer.cpp [HWASan] Enable globals support for LAM. 2021-06-14 14:20:44 -07:00
IndirectCallPromotion.cpp Fix some -Wunused-but-set-variable in -DLLVM_ENABLE_ASSERTIONS=off build 2021-06-04 23:34:43 -07:00
InstrOrderFile.cpp
InstrProfiling.cpp Revert D103717 "[InstrProfiling] Make __profd_ unconditionally private for ELF" 2021-06-17 23:38:17 -07:00
Instrumentation.cpp
MaximumSpanningTree.h
MemorySanitizer.cpp
MemProfiler.cpp
PGOInstrumentation.cpp
PGOMemOPSizeOpt.cpp
PoisonChecking.cpp
SanitizerCoverage.cpp Revert "[TargetLowering] Only inspect attributes in the arguments for ArgListEntry" 2021-06-07 16:07:44 -07:00
ThreadSanitizer.cpp
ValueProfileCollector.cpp
ValueProfileCollector.h
ValueProfilePlugins.inc