[PATCH] D88942: BPF: avoid duplicated globals for CORE relocations
Yonghong Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 6 22:29:56 PDT 2020
yonghong-song updated this revision to Diff 296602.
yonghong-song edited the summary of this revision.
yonghong-song added a comment.
- got an even simpler fix. Just change the map to hold reloc globals `GEPGlobals` to be class static, so it will be available for all instances of BPFAbstractMemberAccess. this also resolved the issue for NPM nicely.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D88942/new/
https://reviews.llvm.org/D88942
Files:
llvm/lib/Target/BPF/BPFAbstractMemberAccess.cpp
llvm/lib/Target/BPF/BPFPreserveDIType.cpp
llvm/test/CodeGen/BPF/CORE/btf-id-duplicate.ll
llvm/test/CodeGen/BPF/CORE/field-reloc-duplicate.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D88942.296602.patch
Type: text/x-patch
Size: 13019 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201007/25c8c0fe/attachment.bin>
More information about the llvm-commits
mailing list