aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorJoseph Huber <huberjn@outlook.com>2023-12-14 11:04:13 -0600
committerGitHub <noreply@github.com>2023-12-14 11:04:13 -0600
commit0ab663d2023a3187423d19ed8e7b631b7ace6168 (patch)
treeab692b921c254a36fdf19c62efcff338ad4be5a8 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parent1fdbdb84a1934e8cdff6c9b9bf7ba75301387dd2 (diff)
downloadllvm-0ab663d2023a3187423d19ed8e7b631b7ace6168.zip
llvm-0ab663d2023a3187423d19ed8e7b631b7ace6168.tar.gz
llvm-0ab663d2023a3187423d19ed8e7b631b7ace6168.tar.bz2
[Libomptarget] Move ELF symbol extraction to the ELF utility (#74717)
Summary: We shouldn't have the format specific ELF handling in the generic plugin manager. This patch moves that out of the implementation and into the ELF utilities. This patch changes the SHT_NOBITS case to be a hard error, which should be correct as the existing use already seemed to return an error if the result was a null pointer. This also uses a `const_cast`, which is bad practice. However, rebuilding the `constness` of all of this would be a massive overhaul, and this matches the previous behaviour (We would take a pointer to the image that is most likely read-only in the ELF).
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions