aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
diff options
context:
space:
mode:
authorJoseph Huber <jhuber6@vols.utk.edu>2023-03-17 15:10:25 -0500
committerJoseph Huber <jhuber6@vols.utk.edu>2023-03-27 11:38:27 -0500
commitb530e1af62be16ffb06285ddca27a413f5089b7e (patch)
treeb2d1fea3d49ac0c1f9f7a7a4683adfa3ac87b203 /llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
parente62836e31fb926ff41f91a7597d674a8c76276bc (diff)
downloadllvm-b530e1af62be16ffb06285ddca27a413f5089b7e.zip
llvm-b530e1af62be16ffb06285ddca27a413f5089b7e.tar.gz
llvm-b530e1af62be16ffb06285ddca27a413f5089b7e.tar.bz2
[LinkerWrapper] Do not extract globals with no offloading language
The linker wrapper needs to reinvent its own special static library handling for static libraries containing fatbinaries. This is primarily because offloading languages expect certain global symbols to be visible to the host so we must consider them used symbols. However we should be able to remove this requirement if we are linking in "freestanding" code that was not created by an offloading language. The motivation for this is to support the work-in-progress `libc` for GPUs. It is provided as a static library with no offloading language set. This logic will let us only import used `libc` symbols always. Reviewed By: yaxunl Differential Revision: https://reviews.llvm.org/D146326
Diffstat (limited to 'llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions