source: icGREP/icgrep-devel/llvm-3.8.0.src/test/Assembler/drop-debug-info.ll @ 5027

Last change on this file since 5027 was 5027, checked in by cameron, 3 years ago

Upgrade to llvm 3.8

File size: 1.4 KB
Line 
1; RUN: llvm-as < %s -o %t.bc 2>&1 >/dev/null | FileCheck -check-prefix=WARN %s
2; RUN: llvm-dis < %t.bc | FileCheck %s
3; RUN: verify-uselistorder < %t.bc
4
5define i32 @main() !dbg !4 {
6entry:
7  %retval = alloca i32, align 4
8  store i32 0, i32* %retval
9  ret i32 0, !dbg !12
10}
11
12!llvm.dbg.cu = !{!0}
13!llvm.module.flags = !{!9}
14
15!0 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang version 3.5 (trunk 195495) (llvm/trunk 195495:195504M)", isOptimized: false, emissionKind: 0, file: !1, enums: !2, retainedTypes: !2, subprograms: !3, globals: !2, imports: !2)
16!1 = !DIFile(filename: "../llvm/tools/clang/test/CodeGen/debug-info-version.c", directory: "/Users/manmanren/llvm_gmail/release")
17!2 = !{i32 0}
18!3 = !{!4}
19!4 = distinct !DISubprogram(name: "main", line: 3, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, scopeLine: 3, file: !1, scope: !5, type: !6, variables: !2)
20!5 = !DIFile(filename: "../llvm/tools/clang/test/CodeGen/debug-info-version.c", directory: "/Users/manmanren/llvm_gmail/release")
21!6 = !DISubroutineType(types: !7)
22!7 = !{!8}
23!8 = !DIBasicType(tag: DW_TAG_base_type, name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
24!9 = !{i32 2, !"Dwarf Version", i32 2}
25!12 = !DILocation(line: 4, scope: !4)
26
27; WARN: warning: ignoring debug info with an invalid version (0)
28; CHECK-NOT: !dbg
29; CHECK-NOT: !llvm.dbg.cu
Note: See TracBrowser for help on using the repository browser.