summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/lib/Target/BPF/BTFDebug.cpp8
-rw-r--r--llvm/test/CodeGen/BPF/BTF/array-1d-char.ll11
-rw-r--r--llvm/test/CodeGen/BPF/BTF/array-1d-int.ll11
-rw-r--r--llvm/test/CodeGen/BPF/BTF/array-2d-int.ll11
-rw-r--r--llvm/test/CodeGen/BPF/BTF/array-size-0.ll11
-rw-r--r--llvm/test/CodeGen/BPF/BTF/array-typedef.ll11
-rw-r--r--llvm/test/CodeGen/BPF/BTF/char.ll11
-rw-r--r--llvm/test/CodeGen/BPF/BTF/empty-btf.ll22
-rw-r--r--llvm/test/CodeGen/BPF/BTF/enum-basic.ll11
-rw-r--r--llvm/test/CodeGen/BPF/BTF/fwd-no-define.ll11
-rw-r--r--llvm/test/CodeGen/BPF/BTF/fwd-with-define.ll11
-rw-r--r--llvm/test/CodeGen/BPF/BTF/int.ll11
-rw-r--r--llvm/test/CodeGen/BPF/BTF/longlong.ll11
-rw-r--r--llvm/test/CodeGen/BPF/BTF/ptr-const-void.ll11
-rw-r--r--llvm/test/CodeGen/BPF/BTF/ptr-func-1.ll11
-rw-r--r--llvm/test/CodeGen/BPF/BTF/ptr-func-2.ll11
-rw-r--r--llvm/test/CodeGen/BPF/BTF/ptr-func-3.ll11
-rw-r--r--llvm/test/CodeGen/BPF/BTF/ptr-int.ll12
-rw-r--r--llvm/test/CodeGen/BPF/BTF/ptr-void.ll11
-rw-r--r--llvm/test/CodeGen/BPF/BTF/ptr-volatile-const-void.ll11
-rw-r--r--llvm/test/CodeGen/BPF/BTF/ptr-volatile-void.ll11
-rw-r--r--llvm/test/CodeGen/BPF/BTF/restrict-ptr.ll11
-rw-r--r--llvm/test/CodeGen/BPF/BTF/short.ll11
-rw-r--r--llvm/test/CodeGen/BPF/BTF/struct-anon.ll11
-rw-r--r--llvm/test/CodeGen/BPF/BTF/struct-basic.ll11
-rw-r--r--llvm/test/CodeGen/BPF/BTF/struct-bitfield-typedef.ll11
-rw-r--r--llvm/test/CodeGen/BPF/BTF/struct-enum.ll11
-rw-r--r--llvm/test/CodeGen/BPF/BTF/uchar.ll11
-rw-r--r--llvm/test/CodeGen/BPF/BTF/uint.ll11
-rw-r--r--llvm/test/CodeGen/BPF/BTF/ulonglong.ll11
-rw-r--r--llvm/test/CodeGen/BPF/BTF/union-array-typedef.ll11
-rw-r--r--llvm/test/CodeGen/BPF/BTF/ushort.ll11
32 files changed, 30 insertions, 331 deletions
diff --git a/llvm/lib/Target/BPF/BTFDebug.cpp b/llvm/lib/Target/BPF/BTFDebug.cpp
index ca3a8c5740e..3f5531357a9 100644
--- a/llvm/lib/Target/BPF/BTFDebug.cpp
+++ b/llvm/lib/Target/BPF/BTFDebug.cpp
@@ -546,6 +546,10 @@ void BTFDebug::emitCommonHeader() {
}
void BTFDebug::emitBTFSection() {
+ // Do not emit section if no types and only "" string.
+ if (!TypeEntries.size() && StringTable.getSize() == 1)
+ return;
+
MCContext &Ctx = OS.getContext();
OS.SwitchSection(Ctx.getELFSection(".BTF", ELF::SHT_PROGBITS, 0));
@@ -578,6 +582,10 @@ void BTFDebug::emitBTFSection() {
}
void BTFDebug::emitBTFExtSection() {
+ // Do not emit section if empty FuncInfoTable and LineInfoTable.
+ if (!FuncInfoTable.size() && !LineInfoTable.size())
+ return;
+
MCContext &Ctx = OS.getContext();
OS.SwitchSection(Ctx.getELFSection(".BTF.ext", ELF::SHT_PROGBITS, 0));
diff --git a/llvm/test/CodeGen/BPF/BTF/array-1d-char.ll b/llvm/test/CodeGen/BPF/BTF/array-1d-char.ll
index 5ef3e9209a0..b23e19fece6 100644
--- a/llvm/test/CodeGen/BPF/BTF/array-1d-char.ll
+++ b/llvm/test/CodeGen/BPF/BTF/array-1d-char.ll
@@ -40,17 +40,6 @@
; CHECK-NEXT: .byte 0
; CHECK-NEXT: .ascii "char" # string offset=21
; CHECK-NEXT: .byte 0
-; CHECK-NEXT: .section .BTF.ext,"",@progbits
-; CHECK-NEXT: .short 60319 # 0xeb9f
-; CHECK-NEXT: .byte 1
-; CHECK-NEXT: .byte 0
-; CHECK-NEXT: .long 24
-; CHECK-NEXT: .long 0
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 8 # FuncInfo
-; CHECK-NEXT: .long 16 # LineInfo
!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
!1 = distinct !DIGlobalVariable(name: "a", scope: !2, file: !3, line: 1, type: !6, isLocal: false, isDefinition: true)
diff --git a/llvm/test/CodeGen/BPF/BTF/array-1d-int.ll b/llvm/test/CodeGen/BPF/BTF/array-1d-int.ll
index 8d81dbe1017..f8a2fffe4d1 100644
--- a/llvm/test/CodeGen/BPF/BTF/array-1d-int.ll
+++ b/llvm/test/CodeGen/BPF/BTF/array-1d-int.ll
@@ -40,17 +40,6 @@
; CHECK-NEXT: .byte 0
; CHECK-NEXT: .ascii "int" # string offset=21
; CHECK-NEXT: .byte 0
-; CHECK-NEXT: .section .BTF.ext,"",@progbits
-; CHECK-NEXT: .short 60319 # 0xeb9f
-; CHECK-NEXT: .byte 1
-; CHECK-NEXT: .byte 0
-; CHECK-NEXT: .long 24
-; CHECK-NEXT: .long 0
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 8 # FuncInfo
-; CHECK-NEXT: .long 16 # LineInfo
!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
!1 = distinct !DIGlobalVariable(name: "a", scope: !2, file: !3, line: 1, type: !6, isLocal: false, isDefinition: true)
diff --git a/llvm/test/CodeGen/BPF/BTF/array-2d-int.ll b/llvm/test/CodeGen/BPF/BTF/array-2d-int.ll
index 00db42e4959..19949096d11 100644
--- a/llvm/test/CodeGen/BPF/BTF/array-2d-int.ll
+++ b/llvm/test/CodeGen/BPF/BTF/array-2d-int.ll
@@ -40,17 +40,6 @@
; CHECK-NEXT: .byte 0
; CHECK-NEXT: .ascii "int" # string offset=21
; CHECK-NEXT: .byte 0
-; CHECK-NEXT: .section .BTF.ext,"",@progbits
-; CHECK-NEXT: .short 60319 # 0xeb9f
-; CHECK-NEXT: .byte 1
-; CHECK-NEXT: .byte 0
-; CHECK-NEXT: .long 24
-; CHECK-NEXT: .long 0
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 8 # FuncInfo
-; CHECK-NEXT: .long 16 # LineInfo
!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
!1 = distinct !DIGlobalVariable(name: "a", scope: !2, file: !3, line: 1, type: !6, isLocal: false, isDefinition: true)
diff --git a/llvm/test/CodeGen/BPF/BTF/array-size-0.ll b/llvm/test/CodeGen/BPF/BTF/array-size-0.ll
index 11e694a26ec..ccc2484e583 100644
--- a/llvm/test/CodeGen/BPF/BTF/array-size-0.ll
+++ b/llvm/test/CodeGen/BPF/BTF/array-size-0.ll
@@ -42,17 +42,6 @@
; CHECK-NEXT: .byte 0
; CHECK-NEXT: .byte 116 # string offset=21
; CHECK-NEXT: .byte 0
-; CHECK-NEXT: .section .BTF.ext,"",@progbits
-; CHECK-NEXT: .short 60319 # 0xeb9f
-; CHECK-NEXT: .byte 1
-; CHECK-NEXT: .byte 0
-; CHECK-NEXT: .long 24
-; CHECK-NEXT: .long 0
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 8 # FuncInfo
-; CHECK-NEXT: .long 16 # LineInfo
!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
!1 = distinct !DIGlobalVariable(name: "a", scope: !2, file: !3, line: 2, type: !6, isLocal: false, isDefinition: true)
diff --git a/llvm/test/CodeGen/BPF/BTF/array-typedef.ll b/llvm/test/CodeGen/BPF/BTF/array-typedef.ll
index 9fe57c9cb79..b4e90c49549 100644
--- a/llvm/test/CodeGen/BPF/BTF/array-typedef.ll
+++ b/llvm/test/CodeGen/BPF/BTF/array-typedef.ll
@@ -52,17 +52,6 @@
; CHECK-NEXT: .byte 0
; CHECK-NEXT: .ascii "unsigned int" # string offset=32
; CHECK-NEXT: .byte 0
-; CHECK-NEXT: .section .BTF.ext,"",@progbits
-; CHECK-NEXT: .short 60319 # 0xeb9f
-; CHECK-NEXT: .byte 1
-; CHECK-NEXT: .byte 0
-; CHECK-NEXT: .long 24
-; CHECK-NEXT: .long 0
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 8 # FuncInfo
-; CHECK-NEXT: .long 16 # LineInfo
!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
!1 = distinct !DIGlobalVariable(name: "a", scope: !2, file: !3, line: 3, type: !6, isLocal: false, isDefinition: true)
diff --git a/llvm/test/CodeGen/BPF/BTF/char.ll b/llvm/test/CodeGen/BPF/BTF/char.ll
index 122f698b322..26ef59c82d8 100644
--- a/llvm/test/CodeGen/BPF/BTF/char.ll
+++ b/llvm/test/CodeGen/BPF/BTF/char.ll
@@ -28,17 +28,6 @@
; CHECK-NEXT: .byte 0 # string offset=0
; CHECK-NEXT: .ascii "char" # string offset=1
; CHECK-NEXT: .byte 0
-; CHECK-NEXT: .section .BTF.ext,"",@progbits
-; CHECK-NEXT: .short 60319 # 0xeb9f
-; CHECK-NEXT: .byte 1
-; CHECK-NEXT: .byte 0
-; CHECK-NEXT: .long 24
-; CHECK-NEXT: .long 0
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 8 # FuncInfo
-; CHECK-NEXT: .long 16 # LineInfo
!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
!1 = distinct !DIGlobalVariable(name: "a", scope: !2, file: !3, line: 1, type: !6, isLocal: false, isDefinition: true)
diff --git a/llvm/test/CodeGen/BPF/BTF/empty-btf.ll b/llvm/test/CodeGen/BPF/BTF/empty-btf.ll
new file mode 100644
index 00000000000..b54df9ff765
--- /dev/null
+++ b/llvm/test/CodeGen/BPF/BTF/empty-btf.ll
@@ -0,0 +1,22 @@
+; RUN: llc -march=bpfel -filetype=asm -o - %s | FileCheck -check-prefixes=CHECK %s
+; RUN: llc -march=bpfeb -filetype=asm -o - %s | FileCheck -check-prefixes=CHECK %s
+
+; Source code:
+; int test(int arg) { return arg; }
+; Compilation flag:
+; clang -target bpf -O2 -S -emit-llvm t.c
+
+; Function Attrs: norecurse nounwind readnone
+define dso_local i32 @test(i32 returned) local_unnamed_addr #0 {
+ ret i32 %0
+}
+
+; CHECK-NOT: BTF
+
+attributes #0 = { norecurse nounwind readnone }
+
+!llvm.module.flags = !{!0}
+!llvm.ident = !{!1}
+
+!0 = !{i32 1, !"wchar_size", i32 4}
+!1 = !{!"clang version 8.0.20181009 "}
diff --git a/llvm/test/CodeGen/BPF/BTF/enum-basic.ll b/llvm/test/CodeGen/BPF/BTF/enum-basic.ll
index 5b710309d95..49114a56c05 100644
--- a/llvm/test/CodeGen/BPF/BTF/enum-basic.ll
+++ b/llvm/test/CodeGen/BPF/BTF/enum-basic.ll
@@ -33,17 +33,6 @@
; CHECK-NEXT: .byte 0
; CHECK-NEXT: .byte 66 # string offset=3
; CHECK-NEXT: .byte 0
-; CHECK-NEXT: .section .BTF.ext,"",@progbits
-; CHECK-NEXT: .short 60319 # 0xeb9f
-; CHECK-NEXT: .byte 1
-; CHECK-NEXT: .byte 0
-; CHECK-NEXT: .long 24
-; CHECK-NEXT: .long 0
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 8 # FuncInfo
-; CHECK-NEXT: .long 16 # LineInfo
!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
!1 = distinct !DIGlobalVariable(name: "a", scope: !2, file: !3, line: 1, type: !5, isLocal: false, isDefinition: true)
diff --git a/llvm/test/CodeGen/BPF/BTF/fwd-no-define.ll b/llvm/test/CodeGen/BPF/BTF/fwd-no-define.ll
index c3d082ee53c..12d10af896b 100644
--- a/llvm/test/CodeGen/BPF/BTF/fwd-no-define.ll
+++ b/llvm/test/CodeGen/BPF/BTF/fwd-no-define.ll
@@ -44,17 +44,6 @@
; CHECK-NEXT: .byte 0
; CHECK-NEXT: .ascii "t1" # string offset=6
; CHECK-NEXT: .byte 0
-; CHECK-NEXT: .section .BTF.ext,"",@progbits
-; CHECK-NEXT: .short 60319 # 0xeb9f
-; CHECK-NEXT: .byte 1
-; CHECK-NEXT: .byte 0
-; CHECK-NEXT: .long 24
-; CHECK-NEXT: .long 0
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 8 # FuncInfo
-; CHECK-NEXT: .long 16 # LineInfo
!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
!1 = distinct !DIGlobalVariable(name: "a", scope: !2, file: !3, line: 2, type: !6, isLocal: false, isDefinition: true)
diff --git a/llvm/test/CodeGen/BPF/BTF/fwd-with-define.ll b/llvm/test/CodeGen/BPF/BTF/fwd-with-define.ll
index 8a88c8956f4..1ce5a95de13 100644
--- a/llvm/test/CodeGen/BPF/BTF/fwd-with-define.ll
+++ b/llvm/test/CodeGen/BPF/BTF/fwd-with-define.ll
@@ -38,17 +38,6 @@
; CHECK-NEXT: .byte 0
; CHECK-NEXT: .byte 112 # string offset=4
; CHECK-NEXT: .byte 0
-; CHECK-NEXT: .section .BTF.ext,"",@progbits
-; CHECK-NEXT: .short 60319 # 0xeb9f
-; CHECK-NEXT: .byte 1
-; CHECK-NEXT: .byte 0
-; CHECK-NEXT: .long 24
-; CHECK-NEXT: .long 0
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 8 # FuncInfo
-; CHECK-NEXT: .long 16 # LineInfo
!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
!1 = distinct !DIGlobalVariable(name: "a", scope: !2, file: !3, line: 2, type: !6, isLocal: false, isDefinition: true)
diff --git a/llvm/test/CodeGen/BPF/BTF/int.ll b/llvm/test/CodeGen/BPF/BTF/int.ll
index fd12cd0238a..08cbaed80e7 100644
--- a/llvm/test/CodeGen/BPF/BTF/int.ll
+++ b/llvm/test/CodeGen/BPF/BTF/int.ll
@@ -28,17 +28,6 @@
; CHECK-NEXT: .byte 0 # string offset=0
; CHECK-NEXT: .ascii "int" # string offset=1
; CHECK-NEXT: .byte 0
-; CHECK-NEXT: .section .BTF.ext,"",@progbits
-; CHECK-NEXT: .short 60319 # 0xeb9f
-; CHECK-NEXT: .byte 1
-; CHECK-NEXT: .byte 0
-; CHECK-NEXT: .long 24
-; CHECK-NEXT: .long 0
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 8 # FuncInfo
-; CHECK-NEXT: .long 16 # LineInfo
!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
!1 = distinct !DIGlobalVariable(name: "a", scope: !2, file: !3, line: 1, type: !6, isLocal: false, isDefinition: true)
diff --git a/llvm/test/CodeGen/BPF/BTF/longlong.ll b/llvm/test/CodeGen/BPF/BTF/longlong.ll
index f936e1eeafb..3e8c76da389 100644
--- a/llvm/test/CodeGen/BPF/BTF/longlong.ll
+++ b/llvm/test/CodeGen/BPF/BTF/longlong.ll
@@ -28,17 +28,6 @@
; CHECK-NEXT: .byte 0 # string offset=0
; CHECK-NEXT: .ascii "long long int" # string offset=1
; CHECK-NEXT: .byte 0
-; CHECK-NEXT: .section .BTF.ext,"",@progbits
-; CHECK-NEXT: .short 60319 # 0xeb9f
-; CHECK-NEXT: .byte 1
-; CHECK-NEXT: .byte 0
-; CHECK-NEXT: .long 24
-; CHECK-NEXT: .long 0
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 8 # FuncInfo
-; CHECK-NEXT: .long 16 # LineInfo
!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
!1 = distinct !DIGlobalVariable(name: "a", scope: !2, file: !3, line: 1, type: !6, isLocal: false, isDefinition: true)
diff --git a/llvm/test/CodeGen/BPF/BTF/ptr-const-void.ll b/llvm/test/CodeGen/BPF/BTF/ptr-const-void.ll
index ccc7b8dc302..7c12d1fbdb5 100644
--- a/llvm/test/CodeGen/BPF/BTF/ptr-const-void.ll
+++ b/llvm/test/CodeGen/BPF/BTF/ptr-const-void.ll
@@ -28,17 +28,6 @@
; CHECK-NEXT: .long 167772160 # 0xa000000
; CHECK-NEXT: .long 0
; CHECK-NEXT: .byte 0 # string offset=0
-; CHECK-NEXT: .section .BTF.ext,"",@progbits
-; CHECK-NEXT: .short 60319 # 0xeb9f
-; CHECK-NEXT: .byte 1
-; CHECK-NEXT: .byte 0
-; CHECK-NEXT: .long 24
-; CHECK-NEXT: .long 0
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 8 # FuncInfo
-; CHECK-NEXT: .long 16 # LineInfo
!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
!1 = distinct !DIGlobalVariable(name: "p", scope: !2, file: !3, line: 1, type: !6, isLocal: false, isDefinition: true)
diff --git a/llvm/test/CodeGen/BPF/BTF/ptr-func-1.ll b/llvm/test/CodeGen/BPF/BTF/ptr-func-1.ll
index e80158b242a..f2881e4cb67 100644
--- a/llvm/test/CodeGen/BPF/BTF/ptr-func-1.ll
+++ b/llvm/test/CodeGen/BPF/BTF/ptr-func-1.ll
@@ -28,17 +28,6 @@
; CHECK-NEXT: .long 218103808 # 0xd000000
; CHECK-NEXT: .long 0
; CHECK-NEXT: .byte 0 # string offset=0
-; CHECK-NEXT: .section .BTF.ext,"",@progbits
-; CHECK-NEXT: .short 60319 # 0xeb9f
-; CHECK-NEXT: .byte 1
-; CHECK-NEXT: .byte 0
-; CHECK-NEXT: .long 24
-; CHECK-NEXT: .long 0
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 8 # FuncInfo
-; CHECK-NEXT: .long 16 # LineInfo
!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
!1 = distinct !DIGlobalVariable(name: "a", scope: !2, file: !3, line: 1, type: !6, isLocal: false, isDefinition: true)
diff --git a/llvm/test/CodeGen/BPF/BTF/ptr-func-2.ll b/llvm/test/CodeGen/BPF/BTF/ptr-func-2.ll
index 29721210905..65d75392801 100644
--- a/llvm/test/CodeGen/BPF/BTF/ptr-func-2.ll
+++ b/llvm/test/CodeGen/BPF/BTF/ptr-func-2.ll
@@ -44,17 +44,6 @@
; CHECK-NEXT: .byte 0
; CHECK-NEXT: .ascii "char" # string offset=5
; CHECK-NEXT: .byte 0
-; CHECK-NEXT: .section .BTF.ext,"",@progbits
-; CHECK-NEXT: .short 60319 # 0xeb9f
-; CHECK-NEXT: .byte 1
-; CHECK-NEXT: .byte 0
-; CHECK-NEXT: .long 24
-; CHECK-NEXT: .long 0
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 8 # FuncInfo
-; CHECK-NEXT: .long 16 # LineInfo
!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
!1 = distinct !DIGlobalVariable(name: "a", scope: !2, file: !3, line: 1, type: !6, isLocal: false, isDefinition: true)
diff --git a/llvm/test/CodeGen/BPF/BTF/ptr-func-3.ll b/llvm/test/CodeGen/BPF/BTF/ptr-func-3.ll
index 85a15b3dbf2..c88b9cc7fe0 100644
--- a/llvm/test/CodeGen/BPF/BTF/ptr-func-3.ll
+++ b/llvm/test/CodeGen/BPF/BTF/ptr-func-3.ll
@@ -44,17 +44,6 @@
; CHECK-NEXT: .byte 0
; CHECK-NEXT: .ascii "int" # string offset=7
; CHECK-NEXT: .byte 0
-; CHECK-NEXT: .section .BTF.ext,"",@progbits
-; CHECK-NEXT: .short 60319 # 0xeb9f
-; CHECK-NEXT: .byte 1
-; CHECK-NEXT: .byte 0
-; CHECK-NEXT: .long 24
-; CHECK-NEXT: .long 0
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 8 # FuncInfo
-; CHECK-NEXT: .long 16 # LineInfo
!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
!1 = distinct !DIGlobalVariable(name: "a", scope: !2, file: !3, line: 2, type: !6, isLocal: false, isDefinition: true)
diff --git a/llvm/test/CodeGen/BPF/BTF/ptr-int.ll b/llvm/test/CodeGen/BPF/BTF/ptr-int.ll
index 1203f79879e..b3f08c69b73 100644
--- a/llvm/test/CodeGen/BPF/BTF/ptr-int.ll
+++ b/llvm/test/CodeGen/BPF/BTF/ptr-int.ll
@@ -31,18 +31,6 @@
; CHECK-NEXT: .byte 0 # string offset=0
; CHECK-NEXT: .ascii "int" # string offset=1
; CHECK-NEXT: .byte 0
-; CHECK-NEXT: .section .BTF.ext,"",@progbits
-; CHECK-NEXT: .short 60319 # 0xeb9f
-; CHECK-NEXT: .byte 1
-; CHECK-NEXT: .byte 0
-; CHECK-NEXT: .long 24
-; CHECK-NEXT: .long 0
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 8 # FuncInfo
-; CHECK-NEXT: .long 16 # LineInfo
-
!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
!1 = distinct !DIGlobalVariable(name: "a", scope: !2, file: !3, line: 1, type: !6, isLocal: false, isDefinition: true)
diff --git a/llvm/test/CodeGen/BPF/BTF/ptr-void.ll b/llvm/test/CodeGen/BPF/BTF/ptr-void.ll
index e83e13073db..78f5e457a55 100644
--- a/llvm/test/CodeGen/BPF/BTF/ptr-void.ll
+++ b/llvm/test/CodeGen/BPF/BTF/ptr-void.ll
@@ -25,17 +25,6 @@
; CHECK-NEXT: .long 33554432 # 0x2000000
; CHECK-NEXT: .long 0
; CHECK-NEXT: .byte 0 # string offset=0
-; CHECK-NEXT: .section .BTF.ext,"",@progbits
-; CHECK-NEXT: .short 60319 # 0xeb9f
-; CHECK-NEXT: .byte 1
-; CHECK-NEXT: .byte 0
-; CHECK-NEXT: .long 24
-; CHECK-NEXT: .long 0
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 8 # FuncInfo
-; CHECK-NEXT: .long 16 # LineInfo
!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
!1 = distinct !DIGlobalVariable(name: "a", scope: !2, file: !3, line: 1, type: !6, isLocal: false, isDefinition: true)
diff --git a/llvm/test/CodeGen/BPF/BTF/ptr-volatile-const-void.ll b/llvm/test/CodeGen/BPF/BTF/ptr-volatile-const-void.ll
index 3d5a2273079..bbb9f20fb36 100644
--- a/llvm/test/CodeGen/BPF/BTF/ptr-volatile-const-void.ll
+++ b/llvm/test/CodeGen/BPF/BTF/ptr-volatile-const-void.ll
@@ -31,17 +31,6 @@
; CHECK-NEXT: .long 150994944 # 0x9000000
; CHECK-NEXT: .long 0
; CHECK-NEXT: .byte 0 # string offset=0
-; CHECK-NEXT: .section .BTF.ext,"",@progbits
-; CHECK-NEXT: .short 60319 # 0xeb9f
-; CHECK-NEXT: .byte 1
-; CHECK-NEXT: .byte 0
-; CHECK-NEXT: .long 24
-; CHECK-NEXT: .long 0
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 8 # FuncInfo
-; CHECK-NEXT: .long 16 # LineInfo
!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
!1 = distinct !DIGlobalVariable(name: "p", scope: !2, file: !3, line: 1, type: !6, isLocal: false, isDefinition: true)
diff --git a/llvm/test/CodeGen/BPF/BTF/ptr-volatile-void.ll b/llvm/test/CodeGen/BPF/BTF/ptr-volatile-void.ll
index 185eee04347..6aa20e0e37f 100644
--- a/llvm/test/CodeGen/BPF/BTF/ptr-volatile-void.ll
+++ b/llvm/test/CodeGen/BPF/BTF/ptr-volatile-void.ll
@@ -28,17 +28,6 @@
; CHECK-NEXT: .long 150994944 # 0x9000000
; CHECK-NEXT: .long 0
; CHECK-NEXT: .byte 0 # string offset=0
-; CHECK-NEXT: .section .BTF.ext,"",@progbits
-; CHECK-NEXT: .short 60319 # 0xeb9f
-; CHECK-NEXT: .byte 1
-; CHECK-NEXT: .byte 0
-; CHECK-NEXT: .long 24
-; CHECK-NEXT: .long 0
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 8 # FuncInfo
-; CHECK-NEXT: .long 16 # LineInfo
!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
!1 = distinct !DIGlobalVariable(name: "p", scope: !2, file: !3, line: 1, type: !6, isLocal: false, isDefinition: true)
diff --git a/llvm/test/CodeGen/BPF/BTF/restrict-ptr.ll b/llvm/test/CodeGen/BPF/BTF/restrict-ptr.ll
index 97cbbe4ddc0..806fbaab467 100644
--- a/llvm/test/CodeGen/BPF/BTF/restrict-ptr.ll
+++ b/llvm/test/CodeGen/BPF/BTF/restrict-ptr.ll
@@ -34,17 +34,6 @@
; CHECK-NEXT: .byte 0 # string offset=0
; CHECK-NEXT: .ascii "int" # string offset=1
; CHECK-NEXT: .byte 0
-; CHECK-NEXT: .section .BTF.ext,"",@progbits
-; CHECK-NEXT: .short 60319 # 0xeb9f
-; CHECK-NEXT: .byte 1
-; CHECK-NEXT: .byte 0
-; CHECK-NEXT: .long 24
-; CHECK-NEXT: .long 0
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 8 # FuncInfo
-; CHECK-NEXT: .long 16 # LineInfo
!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
!1 = distinct !DIGlobalVariable(name: "p", scope: !2, file: !3, line: 1, type: !6, isLocal: false, isDefinition: true)
diff --git a/llvm/test/CodeGen/BPF/BTF/short.ll b/llvm/test/CodeGen/BPF/BTF/short.ll
index 56b779c890a..899f149ffcd 100644
--- a/llvm/test/CodeGen/BPF/BTF/short.ll
+++ b/llvm/test/CodeGen/BPF/BTF/short.ll
@@ -29,17 +29,6 @@
; CHECK-NEXT: .byte 0 # string offset=0
; CHECK-NEXT: .ascii "short" # string offset=1
; CHECK-NEXT: .byte 0
-; CHECK-NEXT: .section .BTF.ext,"",@progbits
-; CHECK-NEXT: .short 60319 # 0xeb9f
-; CHECK-NEXT: .byte 1
-; CHECK-NEXT: .byte 0
-; CHECK-NEXT: .long 24
-; CHECK-NEXT: .long 0
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 8 # FuncInfo
-; CHECK-NEXT: .long 16 # LineInfo
!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
!1 = distinct !DIGlobalVariable(name: "a", scope: !2, file: !3, line: 1, type: !6, isLocal: false, isDefinition: true)
diff --git a/llvm/test/CodeGen/BPF/BTF/struct-anon.ll b/llvm/test/CodeGen/BPF/BTF/struct-anon.ll
index 3be1752cc37..1728b2cfe10 100644
--- a/llvm/test/CodeGen/BPF/BTF/struct-anon.ll
+++ b/llvm/test/CodeGen/BPF/BTF/struct-anon.ll
@@ -45,17 +45,6 @@
; CHECK-NEXT: .byte 0
; CHECK-NEXT: .ascii "int" # string offset=3
; CHECK-NEXT: .byte 0
-; CHECK-NEXT: .section .BTF.ext,"",@progbits
-; CHECK-NEXT: .short 60319 # 0xeb9f
-; CHECK-NEXT: .byte 1
-; CHECK-NEXT: .byte 0
-; CHECK-NEXT: .long 24
-; CHECK-NEXT: .long 0
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 8 # FuncInfo
-; CHECK-NEXT: .long 16 # LineInfo
!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
!1 = distinct !DIGlobalVariable(name: "a", scope: !2, file: !3, line: 1, type: !6, isLocal: false, isDefinition: true)
diff --git a/llvm/test/CodeGen/BPF/BTF/struct-basic.ll b/llvm/test/CodeGen/BPF/BTF/struct-basic.ll
index 69dc0ca3502..bdeadc27a4e 100644
--- a/llvm/test/CodeGen/BPF/BTF/struct-basic.ll
+++ b/llvm/test/CodeGen/BPF/BTF/struct-basic.ll
@@ -51,17 +51,6 @@
; CHECK-NEXT: .byte 0
; CHECK-NEXT: .ascii "int" # string offset=15
; CHECK-NEXT: .byte 0
-; CHECK-NEXT: .section .BTF.ext,"",@progbits
-; CHECK-NEXT: .short 60319 # 0xeb9f
-; CHECK-NEXT: .byte 1
-; CHECK-NEXT: .byte 0
-; CHECK-NEXT: .long 24
-; CHECK-NEXT: .long 0
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 8 # FuncInfo
-; CHECK-NEXT: .long 16 # LineInfo
!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
!1 = distinct !DIGlobalVariable(name: "a", scope: !2, file: !3, line: 1, type: !6, isLocal: false, isDefinition: true)
diff --git a/llvm/test/CodeGen/BPF/BTF/struct-bitfield-typedef.ll b/llvm/test/CodeGen/BPF/BTF/struct-bitfield-typedef.ll
index 502efb0e984..ae246b59855 100644
--- a/llvm/test/CodeGen/BPF/BTF/struct-bitfield-typedef.ll
+++ b/llvm/test/CodeGen/BPF/BTF/struct-bitfield-typedef.ll
@@ -66,17 +66,6 @@
; CHECK-NEXT: .byte 0
; CHECK-NEXT: .ascii "int" # string offset=23
; CHECK-NEXT: .byte 0
-; CHECK-NEXT: .section .BTF.ext,"",@progbits
-; CHECK-NEXT: .short 60319 # 0xeb9f
-; CHECK-NEXT: .byte 1
-; CHECK-NEXT: .byte 0
-; CHECK-NEXT: .long 24
-; CHECK-NEXT: .long 0
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 8 # FuncInfo
-; CHECK-NEXT: .long 16 # LineInfo
!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
!1 = distinct !DIGlobalVariable(name: "a", scope: !2, file: !3, line: 3, type: !6, isLocal: false, isDefinition: true)
diff --git a/llvm/test/CodeGen/BPF/BTF/struct-enum.ll b/llvm/test/CodeGen/BPF/BTF/struct-enum.ll
index c5d924308d3..cf667c78159 100644
--- a/llvm/test/CodeGen/BPF/BTF/struct-enum.ll
+++ b/llvm/test/CodeGen/BPF/BTF/struct-enum.ll
@@ -53,17 +53,6 @@
; CHECK-NEXT: .byte 0
; CHECK-NEXT: .byte 66 # string offset=13
; CHECK-NEXT: .byte 0
-; CHECK-NEXT: .section .BTF.ext,"",@progbits
-; CHECK-NEXT: .short 60319 # 0xeb9f
-; CHECK-NEXT: .byte 1
-; CHECK-NEXT: .byte 0
-; CHECK-NEXT: .long 24
-; CHECK-NEXT: .long 0
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 8 # FuncInfo
-; CHECK-NEXT: .long 16 # LineInfo
!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
!1 = distinct !DIGlobalVariable(name: "a", scope: !2, file: !3, line: 2, type: !11, isLocal: false, isDefinition: true)
diff --git a/llvm/test/CodeGen/BPF/BTF/uchar.ll b/llvm/test/CodeGen/BPF/BTF/uchar.ll
index 19dad38ee86..2e31f2c388b 100644
--- a/llvm/test/CodeGen/BPF/BTF/uchar.ll
+++ b/llvm/test/CodeGen/BPF/BTF/uchar.ll
@@ -28,17 +28,6 @@
; CHECK-NEXT: .byte 0 # string offset=0
; CHECK-NEXT: .ascii "unsigned char" # string offset=1
; CHECK-NEXT: .byte 0
-; CHECK-NEXT: .section .BTF.ext,"",@progbits
-; CHECK-NEXT: .short 60319 # 0xeb9f
-; CHECK-NEXT: .byte 1
-; CHECK-NEXT: .byte 0
-; CHECK-NEXT: .long 24
-; CHECK-NEXT: .long 0
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 8 # FuncInfo
-; CHECK-NEXT: .long 16 # LineInfo
!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
!1 = distinct !DIGlobalVariable(name: "a", scope: !2, file: !3, line: 1, type: !6, isLocal: false, isDefinition: true)
diff --git a/llvm/test/CodeGen/BPF/BTF/uint.ll b/llvm/test/CodeGen/BPF/BTF/uint.ll
index b87b2ab4916..e97d5f54001 100644
--- a/llvm/test/CodeGen/BPF/BTF/uint.ll
+++ b/llvm/test/CodeGen/BPF/BTF/uint.ll
@@ -28,17 +28,6 @@
; CHECK-NEXT: .byte 0 # string offset=0
; CHECK-NEXT: .ascii "unsigned int" # string offset=1
; CHECK-NEXT: .byte 0
-; CHECK-NEXT: .section .BTF.ext,"",@progbits
-; CHECK-NEXT: .short 60319 # 0xeb9f
-; CHECK-NEXT: .byte 1
-; CHECK-NEXT: .byte 0
-; CHECK-NEXT: .long 24
-; CHECK-NEXT: .long 0
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 8 # FuncInfo
-; CHECK-NEXT: .long 16 # LineInfo
!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
!1 = distinct !DIGlobalVariable(name: "a", scope: !2, file: !3, line: 1, type: !6, isLocal: false, isDefinition: true)
diff --git a/llvm/test/CodeGen/BPF/BTF/ulonglong.ll b/llvm/test/CodeGen/BPF/BTF/ulonglong.ll
index b8ff1441d2f..93a8c221ba0 100644
--- a/llvm/test/CodeGen/BPF/BTF/ulonglong.ll
+++ b/llvm/test/CodeGen/BPF/BTF/ulonglong.ll
@@ -28,17 +28,6 @@
; CHECK-NEXT: .byte 0 # string offset=0
; CHECK-NEXT: .ascii "long long unsigned int" # string offset=1
; CHECK-NEXT: .byte 0
-; CHECK-NEXT: .section .BTF.ext,"",@progbits
-; CHECK-NEXT: .short 60319 # 0xeb9f
-; CHECK-NEXT: .byte 1
-; CHECK-NEXT: .byte 0
-; CHECK-NEXT: .long 24
-; CHECK-NEXT: .long 0
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 8 # FuncInfo
-; CHECK-NEXT: .long 16 # LineInfo
!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
!1 = distinct !DIGlobalVariable(name: "a", scope: !2, file: !3, line: 1, type: !6, isLocal: false, isDefinition: true)
diff --git a/llvm/test/CodeGen/BPF/BTF/union-array-typedef.ll b/llvm/test/CodeGen/BPF/BTF/union-array-typedef.ll
index 53a4c6013e9..b56d6da17cf 100644
--- a/llvm/test/CodeGen/BPF/BTF/union-array-typedef.ll
+++ b/llvm/test/CodeGen/BPF/BTF/union-array-typedef.ll
@@ -69,17 +69,6 @@
; CHECK-NEXT: .byte 0
; CHECK-NEXT: .ascii "int" # string offset=37
; CHECK-NEXT: .byte 0
-; CHECK-NEXT: .section .BTF.ext,"",@progbits
-; CHECK-NEXT: .short 60319 # 0xeb9f
-; CHECK-NEXT: .byte 1
-; CHECK-NEXT: .byte 0
-; CHECK-NEXT: .long 24
-; CHECK-NEXT: .long 0
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 8 # FuncInfo
-; CHECK-NEXT: .long 16 # LineInfo
!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
!1 = distinct !DIGlobalVariable(name: "a", scope: !2, file: !3, line: 2, type: !6, isLocal: false, isDefinition: true)
diff --git a/llvm/test/CodeGen/BPF/BTF/ushort.ll b/llvm/test/CodeGen/BPF/BTF/ushort.ll
index 2eb28a31a0b..dd4ccdf5a67 100644
--- a/llvm/test/CodeGen/BPF/BTF/ushort.ll
+++ b/llvm/test/CodeGen/BPF/BTF/ushort.ll
@@ -28,17 +28,6 @@
; CHECK-NEXT: .byte 0 # string offset=0
; CHECK-NEXT: .ascii "unsigned short" # string offset=1
; CHECK-NEXT: .byte 0
-; CHECK-NEXT: .section .BTF.ext,"",@progbits
-; CHECK-NEXT: .short 60319 # 0xeb9f
-; CHECK-NEXT: .byte 1
-; CHECK-NEXT: .byte 0
-; CHECK-NEXT: .long 24
-; CHECK-NEXT: .long 0
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 4
-; CHECK-NEXT: .long 8 # FuncInfo
-; CHECK-NEXT: .long 16 # LineInfo
!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
!1 = distinct !DIGlobalVariable(name: "a", scope: !2, file: !3, line: 1, type: !6, isLocal: false, isDefinition: true)
OpenPOWER on IntegriCloud