Skip to content

Instantly share code, notes, and snippets.

@carlokok

carlokok/test.ll Secret

Created March 14, 2018 12:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carlokok/fb0f1bf213ee4599d8f2442e37b23f03 to your computer and use it in GitHub Desktop.
Save carlokok/fb0f1bf213ee4599d8f2442e37b23f03 to your computer and use it in GitHub Desktop.
; ModuleID = 'x7.ll'
source_filename = "ld-temp.o"
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"
; Function Attrs: nounwind readnone speculatable
declare void @llvm.dbg.value(metadata, metadata, metadata) #0
declare i8* @m1(i8* %arg, i8* %arg1)
define dso_local hidden void @m2(i8* %arg, i8* %arg1, i8* %arg2) !dbg !17 {
bb:
call void @llvm.dbg.value(metadata i8* %arg2, metadata !18, metadata !DIExpression()), !dbg !21
%tmp = tail call fastcc i8* @m1(i8* %arg1, i8* %arg2), !dbg !21
ret void
}
attributes #0 = { nounwind readnone speculatable }
!llvm.module.flags = !{!0, !1}
!llvm.dbg.cu = !{!2, !5}
!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: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !4, retainedTypes: !4, globals: !4)
!3 = !DIFile(filename: "f1", directory: "/")
!4 = !{}
!5 = distinct !DICompileUnit(language: DW_LANG_C99, file: !6, producer: "RemObjects Island", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !4, retainedTypes: !4, globals: !4)
!6 = !DIFile(filename: "f2", directory: "/")
!7 = distinct !DISubprogram(name: "FormatString", linkageName: "m1", scope: !9, file: !8, line: 55, type: !11, isLocal: false, isDefinition: true, scopeLine: 55, isOptimized: true, unit: !2, variables: !4)
!8 = !DIFile(filename: "f3", directory: "/")
!9 = !DICompositeType(tag: DW_TAG_structure_type, name: "RemObjects.Elements.RTL.StringFormatter", scope: !2, file: !10, size: 32, align: 32, elements: !4)
!10 = !DIFile(filename: "f4", directory: "/")
!11 = !DISubroutineType(types: !4)
!12 = !DILocation(line: 313, column: 3, scope: !13)
!13 = !DILexicalBlock(scope: !14, file: !8, line: 312, column: 1)
!14 = distinct !DISubprogram(name: ".", linkageName: "m1", scope: !5, file: !8, line: 32, type: !15, isLocal: false, isDefinition: true, scopeLine: 32, isOptimized: true, unit: !2, variables: !4)
!15 = !DISubroutineType(types: !16)
!16 = !{null}
!17 = distinct !DISubprogram(name: ".", linkageName: "m2", scope: !3, file: !8, line: 158, type: !15, isLocal: false, isDefinition: true, scopeLine: 158, isOptimized: true, unit: !5, variables: !4)
!18 = !DILocalVariable(name: "aParams", scope: !13, file: !8, line: 32, type: !19)
!19 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !20, size: 32, align: 32)
!20 = !DICompositeType(tag: DW_TAG_structure_type, name: "gt2a_RemObjects_d_Elements_d_System_d_Array_t_1o", scope: !2, file: !10, size: 96, align: 32, elements: !4)
!21 = !DILocation(line: 32, column: 5, scope: !13, inlinedAt: !22)
!22 = distinct !DILocation(line: 159, column: 7, scope: !23)
!23 = !DILexicalBlock(scope: !17, file: !8, line: 158, column: 5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment