[llvm] r354409 - [BPF] make test case reloc-btf.ll tolerable for old compilers
Yonghong Song via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 19 16:22:19 PST 2019
Author: yhs
Date: Tue Feb 19 16:22:19 2019
New Revision: 354409
URL: http://llvm.org/viewvc/llvm-project?rev=354409&view=rev
Log:
[BPF] make test case reloc-btf.ll tolerable for old compilers
The test case reloc-btf.ll is generated with an IR containing
spFlags introduced by https://reviews.llvm.org/rL347806.
In the case of BTF backporting, the old compiler may not
have this patch, so this test will fail during
validation.
This patch removed spFlags from IR in the test case
and used the old way for various flags.
Acked-by: Alexei Starovoitov <ast at kernel.org>
Signed-off-by: Yonghong Song <yhs at fb.com>
Modified:
llvm/trunk/test/CodeGen/BPF/reloc-btf.ll
Modified: llvm/trunk/test/CodeGen/BPF/reloc-btf.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/BPF/reloc-btf.ll?rev=354409&r1=354408&r2=354409&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/BPF/reloc-btf.ll (original)
+++ llvm/trunk/test/CodeGen/BPF/reloc-btf.ll Tue Feb 19 16:22:19 2019
@@ -19,14 +19,14 @@ attributes #0 = { norecurse nounwind rea
!llvm.module.flags = !{!3, !4, !5}
!llvm.ident = !{!6}
-!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 8.0.0 (trunk 350573) (llvm/trunk 350569)", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, nameTableKind: None)
+!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 8.0.0", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, nameTableKind: None)
!1 = !DIFile(filename: "tt.c", directory: "/home/yhs/tmp")
!2 = !{}
!3 = !{i32 2, !"Dwarf Version", i32 4}
!4 = !{i32 2, !"Debug Info Version", i32 3}
!5 = !{i32 1, !"wchar_size", i32 4}
!6 = !{!"clang version 8.0.0 (trunk 350573) (llvm/trunk 350569)"}
-!7 = distinct !DISubprogram(name: "test", scope: !1, file: !1, line: 1, type: !8, scopeLine: 1, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !0, retainedNodes: !2)
+!7 = distinct !DISubprogram(name: "test", scope: !1, file: !1, line: 1, type: !8, scopeLine: 1, isDefinition: true, isOptimized: true, unit: !0, retainedNodes: !2)
!8 = !DISubroutineType(types: !9)
!9 = !{!10}
!10 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)
More information about the llvm-commits
mailing list