[BPF] generate BTF_KIND_VARs for all non-static globals
authorYonghong Song <yhs@fb.com>
Tue, 12 Nov 2019 19:31:52 +0000 (11:31 -0800)
committerYonghong Song <yhs@fb.com>
Tue, 12 Nov 2019 22:34:08 +0000 (14:34 -0800)
commit166cdc02818fd7a6653f76216b4f64cb4b21619e
tree6dacc6374977fb7b4ea5a4e276aa87e60e08be7b
parentdb69f1b22951ce49bda8e492ec8e6f60d9721668
[BPF] generate BTF_KIND_VARs for all non-static globals

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
llvm/lib/Target/BPF/BTF.h
llvm/lib/Target/BPF/BTFDebug.cpp
llvm/test/CodeGen/BPF/BTF/global-var-inited.ll