aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2021-06-24 21:35:48 -0700
committerFangrui Song <i@maskray.me>2021-06-24 21:35:48 -0700
commitca3bdb57fa1ac98b711a735de048c12b5fdd8086 (patch)
tree3850ccd61ed815b336bef704d780b7c97a14b075 /flang/lib/Frontend/CompilerInvocation.cpp
parent1aa02b37e7dcbf9fb35662fde8c65ac9a277f6b9 (diff)
downloadllvm-ca3bdb57fa1ac98b711a735de048c12b5fdd8086.zip
llvm-ca3bdb57fa1ac98b711a735de048c12b5fdd8086.tar.gz
llvm-ca3bdb57fa1ac98b711a735de048c12b5fdd8086.tar.bz2
[MC][ELF] Change SHT_LLVM_CALL_GRAPH_PROFILE relocations from SHT_RELA to SHT_REL
... even on targets preferring RELA. The section is only consumed by ld.lld which can handle REL. Follow-up to D104080 as I explained in the review. There are two advantages: * The D104080 code only handles RELA, so arm/i386/mips32 etc may warn for -fprofile-use=/-fprofile-sample-use= usage. * Decrease object file size for RELA targets While here, change the relocation to relocate weights, instead of 0,1,2,3,.. I failed to catch the issue during review.
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions