[llvm] 7ca3fd7 - [Dwarf] Remove unnecessary module flags from test

Ellis Hoag via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 5 11:18:54 PDT 2022


Author: Ellis Hoag
Date: 2022-10-05T11:18:44-07:00
New Revision: 7ca3fd72c7245a5e9c474f2080da0a3d322aabd0

URL: https://github.com/llvm/llvm-project/commit/7ca3fd72c7245a5e9c474f2080da0a3d322aabd0
DIFF: https://github.com/llvm/llvm-project/commit/7ca3fd72c7245a5e9c474f2080da0a3d322aabd0.diff

LOG: [Dwarf] Remove unnecessary module flags from test

These extra module flags are not needed for this test, so remove them. In fact, leaving them in produces the following error message:

> invalid behavior operand in module flag (unexpected constant)

Differential Revision: https://reviews.llvm.org/D135294

Added: 
    

Modified: 
    llvm/test/DebugInfo/Generic/cross-cu-inlining-2.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/DebugInfo/Generic/cross-cu-inlining-2.ll b/llvm/test/DebugInfo/Generic/cross-cu-inlining-2.ll
index dba084dbc056..11719dc86b8d 100644
--- a/llvm/test/DebugInfo/Generic/cross-cu-inlining-2.ll
+++ b/llvm/test/DebugInfo/Generic/cross-cu-inlining-2.ll
@@ -14,32 +14,15 @@ define void @bar() !dbg !34 {
 }
 
 !llvm.dbg.cu = !{!0, !3}
-!llvm.module.flags = !{!5, !6, !7, !8, !9, !10, !11, !12, !13, !14, !15, !16, !17, !18, !19, !20, !21, !22, !23}
+!llvm.module.flags = !{!10, !11}
 
 !0 = distinct !DICompileUnit(language: DW_LANG_Swift, file: !1, isOptimized: true, runtimeVersion: 5, emissionKind: FullDebug, globals: !2, imports: !2)
 !1 = !DIFile(filename: "A.swift", directory: "")
 !2 = !{}
 !3 = distinct !DICompileUnit(language: DW_LANG_Swift, file: !4, isOptimized: true, runtimeVersion: 5, emissionKind: FullDebug, imports: !2)
 !4 = !DIFile(filename: "B.swift", directory: "")
-!5 = !{i32 2, !"SDK Version", [2 x i32] [i32 16, i32 0]}
-!6 = !{i32 1, !"Objective-C Version", i32 2}
-!7 = !{i32 1, !"Objective-C Image Info Version", i32 0}
-!8 = !{i32 1, !"Objective-C Garbage Collection", i8 0}
-!9 = !{i32 1, !"Objective-C Class Properties", i32 64}
 !10 = !{i32 7, !"Dwarf Version", i32 4}
 !11 = !{i32 2, !"Debug Info Version", i32 3}
-!12 = !{i32 1, !"wchar_size", i32 4}
-!13 = !{i32 8, !"branch-target-enforcement", i32 0}
-!14 = !{i32 8, !"sign-return-address", i32 0}
-!15 = !{i32 8, !"sign-return-address-all", i32 0}
-!16 = !{i32 8, !"sign-return-address-with-bkey", i32 0}
-!17 = !{i32 8, !"PIC Level", i32 2}
-!18 = !{i32 7, !"uwtable", i32 1}
-!19 = !{i32 7, !"frame-pointer", i32 1}
-!20 = !{i32 1, !"Swift Version", i32 7}
-!21 = !{i32 1, !"Swift ABI Version", i32 7}
-!22 = !{i32 1, !"Swift Major Version", i8 5}
-!23 = !{i32 1, !"Swift Minor Version", i8 7}
 !24 = distinct !DISubprogram(name: "foo", scope: !25, file: !1, line: 116, type: !27, scopeLine: 116, spFlags: DISPFlagDefinition, unit: !0, retainedNodes: !2)
 !25 = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "FooTy", scope: !26, file: !1, size: 64, elements: !2)
 !26 = !DIModule(scope: null, name: "Mod")


        


More information about the llvm-commits mailing list