-
-
Save carlokok/202961f81bbcf1a28139eae1d6fbf1ca to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; ModuleID = 'ConsoleApplication28' | |
source_filename = "ConsoleApplication28" | |
target datalayout = "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32" | |
; target triple = "i686-pc-windows-msvc" | |
define void @Test1(i32) #0 !dbg !5 { | |
BasicBlock0: | |
%1 = alloca i32 | |
store i32 %0, i32* %1 | |
call void @llvm.dbg.declare(metadata i32* %1, metadata !20, metadata !22), !dbg !23 | |
%2 = load i32, i32* %1, !dbg !24 | |
%3 = add i32 %2, 1, !dbg !24 | |
store i32 %3, i32* %1, !dbg !24 | |
ret void, !dbg !25 | |
} | |
define void @Test2(i32*) #0 !dbg !9 { | |
BasicBlock3: | |
call void @llvm.dbg.declare(metadata i32* %0, metadata !26, metadata !22), !dbg !28 | |
%1 = load i32, i32* %0, !dbg !29 | |
%2 = add i32 %1, 1, !dbg !29 | |
store i32 %2, i32* %0, !dbg !29 | |
ret void, !dbg !30 | |
} | |
define void @main() #0 !dbg !15 { | |
BasicBlock6: | |
%0 = alloca i32 | |
store i32 0, i32* %0 | |
call void @Test1(i32 0), !dbg !33 | |
call void @Test2(i32* %0), !dbg !33 | |
ret void, !dbg !33 | |
} | |
; Function Attrs: nounwind readnone | |
declare void @llvm.dbg.declare(metadata, metadata, metadata) #1 | |
attributes #1 = { nounwind readnone } | |
!llvm.module.flags = !{!0, !1} | |
!llvm.dbg.cu = !{!2} | |
!0 = !{i32 2, !"Dwarf Version", i32 4} | |
!1 = !{i32 2, !"Debug Info Version", i32 3} | |
!2 = distinct !DICompileUnit(language: DW_LANG_C99, file: !3, producer: "RemObjects Island", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !4, retainedTypes: !4, globals: !4, imports: !4) | |
!3 = !DIFile(filename: "issuedebugout.elements", directory: "/__windows_drive__c/projects/oxygene/testcases/work") | |
!4 = !{} | |
!5 = distinct !DISubprogram(name: "MEH", linkageName: "Test1", scope: !7, file: !6, line: 11, type: !18, isLocal: false, isDefinition: true, scopeLine: 11, flags: DIFlagPublic | DIFlagAppleBlock, isOptimized: false, unit: !2, variables: !4) | |
!6 = !DIFile(filename: "issuedebugout_1.pas", directory: "/__windows_drive__c/projects/oxygene/testcases/work") | |
!7 = !DICompositeType(tag: DW_TAG_structure_type, name: "issuedebugouttest.<Global>", scope: !2, file: !3, size: 32, align: 32, elements: !8) | |
!8 = !{!5, !9, !15} | |
!9 = distinct !DISubprogram(name: "MEH2", linkageName: "Test2", scope: !7, file: !6, line: 15, type: !10, isLocal: false, isDefinition: true, scopeLine: 15, flags: DIFlagPublic | DIFlagFwdDecl | DIFlagAppleBlock, isOptimized: false, unit: !2, variables: !4) | |
!10 = !DISubroutineType(types: !11) | |
!11 = !{null, !12} | |
!12 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !13, size: 32, align: 32) | |
!13 = !DIDerivedType(tag: DW_TAG_typedef, name: "Integer", scope: !2, file: !3, baseType: !14) | |
!14 = !DIBasicType(name: "Integer", size: 32, align: 32, encoding: DW_ATE_signed) | |
!15 = distinct !DISubprogram(name: "main", linkageName: "main", scope: !7, file: !6, line: 20, type: !16, isLocal: false, isDefinition: true, scopeLine: 20, flags: DIFlagFwdDecl | DIFlagBlockByrefStruct, isOptimized: false, unit: !2, variables: !4) | |
!16 = !DISubroutineType(types: !17) | |
!17 = !{null} | |
!18 = !DISubroutineType(types: !19) | |
!19 = !{null, !13} | |
!20 = !DILocalVariable(name: "i", scope: !21, file: !6, line: 11, type: !13) | |
!21 = !DILexicalBlock(scope: !5, file: !6, line: 11, column: 1) | |
!22 = !DIExpression() | |
!23 = !DILocation(line: 11, column: 1, scope: !21) | |
!24 = !DILocation(line: 12, column: 3, scope: !21) | |
!25 = !DILocation(line: 13, column: 1, scope: !21) | |
!26 = !DILocalVariable(name: "i2", scope: !27, file: !6, line: 15, type: !13) | |
!27 = !DILexicalBlock(scope: !9, file: !6, line: 15, column: 1) | |
!28 = !DILocation(line: 15, column: 1, scope: !27) | |
!29 = !DILocation(line: 16, column: 3, scope: !27) | |
!30 = !DILocation(line: 17, column: 1, scope: !27) | |
!31 = !DILocation(line: 20, column: 1, scope: !32) | |
!32 = !DILexicalBlock(scope: !15, file: !6, line: 20, column: 1) | |
!33 = !DILocation(line: 21, column: 1, scope: !32) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment