Skip to content

Instantly share code, notes, and snippets.

@carlokok

carlokok/test.ll Secret

Created December 21, 2016 05:56
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/77010598f81e8167592e593ec6c715a1 to your computer and use it in GitHub Desktop.
Save carlokok/77010598f81e8167592e593ec6c715a1 to your computer and use it in GitHub Desktop.
; 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"
%._issuedebugouttest.__Global = type { %._RemObjects.Elements.System.Object }
%._RemObjects.Elements.System.Object = type { i8* }
%._RemObjects.Elements.System.String = type { %._RemObjects.Elements.System.Object, i32, i16 }
@_rtti_o = external global i8
@.str0 = private unnamed_addr constant [27 x i8] c"issuedebugouttest.__Global\00", align 1
@_rtti_i32 = external global i8
@_rtti_t24_RemObjects.Elements.System.ValueType = external global i8
@_typeinfo__rtti_t1a_issuedebugouttest.__Global = constant i8* bitcast ({ { i64, [27 x i8]*, i8*, [95 x i8]*, { i8** }* }*, i8*, i8*, i8*, i8*, i8*, i8*, i8* }* @_rtti_t1a_issuedebugouttest.__Global to i8*), section "ELRTTL", align 4
@_extmd__rtti_t1a_issuedebugouttest.__Global = constant [95 x i8] c"X%`\04\1B\00\00\00\00\12\03MEHH\050\00$\0A\01i\10\00\18\00\06\18\02\1B\00\00\00\00\12\04MEH2H\050\00$\0A\02i2\10\00\18\02\06\18\02\1B\00\00\00\00\12\04mainH\090\00\1B\00\00\00\00\12\05.ctorH\030\00\18\80\A0\81\80\01\00\00"
@_extmdd__rtti_t1a_issuedebugouttest.__Global = constant { i8** } { i8** @_typeinfo__rtti_t1a_issuedebugouttest.__Global }
@_ext__rtti_t1a_issuedebugouttest.__Global = constant { i64, [27 x i8]*, i8*, [95 x i8]*, { i8** }* } { i64 16, [27 x i8]* @.str0, i8* null, [95 x i8]* @_extmd__rtti_t1a_issuedebugouttest.__Global, { i8** }* @_extmdd__rtti_t1a_issuedebugouttest.__Global }
@_rtti_t1a_issuedebugouttest.__Global = constant { { i64, [27 x i8]*, i8*, [95 x i8]*, { i8** }* }*, i8*, i8*, i8*, i8*, i8*, i8*, i8* } { { i64, [27 x i8]*, i8*, [95 x i8]*, { i8** }* }* @_ext__rtti_t1a_issuedebugouttest.__Global, i8* @_rtti_o, i8* null, i8* null, i8* bitcast (void (%._RemObjects.Elements.System.Object*)* @__default_finalize to i8*), i8* bitcast (%._RemObjects.Elements.System.String* (%._RemObjects.Elements.System.Object*)* @mi_o8_ToString to i8*), i8* bitcast (i32 (%._RemObjects.Elements.System.Object*)* @mi_ob_GetHashCode to i8*), i8* bitcast (i8 (%._RemObjects.Elements.System.Object*, %._RemObjects.Elements.System.Object*)* @mi_o6_Equalsno to i8*) }
define void @ms_t1a_issuedebugouttest.__Global3_MEHni32(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
br label %BasicBlock1, !dbg !23
BasicBlock1: ; preds = %BasicBlock0
%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
BasicBlock2: ; No predecessors!
unreachable, !dbg !25
}
define void @ms_t1a_issuedebugouttest.__Global4_MEH2n_o_i32(i32*) #0 !dbg !9 {
BasicBlock3:
call void @llvm.dbg.declare(metadata i32* %0, metadata !26, metadata !22), !dbg !28
br label %BasicBlock4, !dbg !28
BasicBlock4: ; preds = %BasicBlock3
%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
BasicBlock5: ; No predecessors!
unreachable, !dbg !30
}
define void @__elements_entry_point() #0 !dbg !15 {
BasicBlock6:
br label %BasicBlock7, !dbg !31
BasicBlock7: ; preds = %BasicBlock6
ret void, !dbg !33
BasicBlock8: ; No predecessors!
unreachable, !dbg !33
}
define void @mi_t1a_issuedebugouttest.__Global5_.ctor(%._issuedebugouttest.__Global*) #0 {
BasicBlock9:
%1 = alloca %._issuedebugouttest.__Global*, align 4
store %._issuedebugouttest.__Global* %0, %._issuedebugouttest.__Global** %1
br label %BasicBlock10
BasicBlock10: ; preds = %BasicBlock9
%2 = load %._issuedebugouttest.__Global*, %._issuedebugouttest.__Global** %1
%3 = bitcast %._issuedebugouttest.__Global* %2 to %._RemObjects.Elements.System.Object*
call void @mi_o5_.ctor(%._RemObjects.Elements.System.Object* %3)
ret void
BasicBlock11: ; No predecessors!
unreachable
}
declare void @__default_finalize(%._RemObjects.Elements.System.Object*)
declare %._RemObjects.Elements.System.String* @mi_o8_ToString(%._RemObjects.Elements.System.Object*)
declare i32 @mi_ob_GetHashCode(%._RemObjects.Elements.System.Object*)
declare i8 @mi_o6_Equalsno(%._RemObjects.Elements.System.Object*, %._RemObjects.Elements.System.Object*)
; Function Attrs: nounwind readnone
declare void @llvm.dbg.declare(metadata, metadata, metadata) #1
declare void @mi_o5_.ctor(%._RemObjects.Elements.System.Object*)
attributes #0 = { "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" }
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: "ms_t1a_issuedebugouttest.__Global3_MEHni32", 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: "ms_t1a_issuedebugouttest.__Global4_MEH2n_o_i32", 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: "__elements_entry_point", 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