Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [BPF] generate BTF_KIND_VARs for all non-static globals | Yonghong Song | 2019-11-12 | 1 | -3/+17 |
| | | | | | | | | | | | Enable to generate BTF_KIND_VARs for non-static default-section globals which is not allowed previously. Modified the existing test case to accommodate the new change. Also removed unused linkage enum members VAR_GLOBAL_TENTATIVE and VAR_GLOBAL_EXTERNAL. Differential Revision: https://reviews.llvm.org/D70145 | ||||
* | [BPF] handle external global properly | Yonghong Song | 2019-03-15 | 1 | -0/+42 |
Previous commit 6bc58e6d3dbd ("[BPF] do not generate unused local/global types") tried to exclude global variable from type generation. The condition is: if (Global.hasExternalLinkage()) continue; This is not right. It also excluded initialized globals. The correct condition (from AssemblyWriter::printGlobal()) is: if (!GV->hasInitializer() && GV->hasExternalLinkage()) Out << "external "; Let us do the same in BTF type generation. Also added a test for it. Signed-off-by: Yonghong Song <yhs@fb.com> llvm-svn: 356279 |