Dale Johannesen | c4599fb | 2008-07-08 21:57:56 +0000 | [diff] [blame^] | 1 | ; RUN: llvm-as < %s | llc | grep DWARF |
| 2 | ; ModuleID = 'foo.c' |
| 3 | target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128" |
| 4 | target triple = "i386-apple-darwin8" |
| 5 | %llvm.dbg.anchor.type = type { i32, i32 } |
| 6 | %llvm.dbg.basictype.type = type { i32, { }*, i8*, { }*, i32, i64, i64, i64, i32, i32 } |
| 7 | %llvm.dbg.compile_unit.type = type { i32, { }*, i32, i8*, i8*, i8* } |
| 8 | %llvm.dbg.global_variable.type = type { i32, { }*, { }*, i8*, i8*, i8*, { }*, i32, { }*, i1, i1, { }* } |
| 9 | @x = common global i32 0 ; <i32*> [#uses=1] |
| 10 | @llvm.dbg.global_variable = internal constant %llvm.dbg.global_variable.type { |
| 11 | i32 393268, |
| 12 | { }* bitcast (%llvm.dbg.anchor.type* @llvm.dbg.global_variables to { }*), |
| 13 | { }* bitcast (%llvm.dbg.compile_unit.type* @llvm.dbg.compile_unit to { }*), |
| 14 | i8* getelementptr ([2 x i8]* @.str3, i32 0, i32 0), |
| 15 | i8* getelementptr ([2 x i8]* @.str3, i32 0, i32 0), |
| 16 | i8* null, |
| 17 | { }* bitcast (%llvm.dbg.compile_unit.type* @llvm.dbg.compile_unit to { }*), |
| 18 | i32 1, |
| 19 | { }* bitcast (%llvm.dbg.basictype.type* @llvm.dbg.basictype to { }*), |
| 20 | i1 false, |
| 21 | i1 true, |
| 22 | { }* bitcast (i32* @x to { }*) }, section "llvm.metadata" ; <%llvm.dbg.global_variable.type*> [#uses=0] |
| 23 | @llvm.dbg.global_variables = linkonce constant %llvm.dbg.anchor.type { i32 393216, i32 52 }, section "llvm.metadata" ; <%llvm.dbg.anchor.type*> [#uses=1] |
| 24 | @llvm.dbg.compile_unit = internal constant %llvm.dbg.compile_unit.type { |
| 25 | i32 393233, |
| 26 | { }* bitcast (%llvm.dbg.anchor.type* @llvm.dbg.compile_units to { }*), |
| 27 | i32 1, |
| 28 | i8* getelementptr ([6 x i8]* @.str, i32 0, i32 0), |
| 29 | i8* getelementptr ([23 x i8]* @.str1, i32 0, i32 0), |
| 30 | i8* getelementptr ([52 x i8]* @.str2, i32 0, i32 0) }, section "llvm.metadata" ; <%llvm.dbg.compile_unit.type*> [#uses=1] |
| 31 | @llvm.dbg.compile_units = linkonce constant %llvm.dbg.anchor.type { i32 393216, i32 17 }, section "llvm.metadata" ; <%llvm.dbg.anchor.type*> [#uses=1] |
| 32 | @.str = internal constant [6 x i8] c"foo.c\00", section "llvm.metadata" ; <[6 x i8]*> [#uses=1] |
| 33 | @.str1 = internal constant [23 x i8] c"/Volumes/MacOS9/tests/\00", section "llvm.metadata" ; <[23 x i8]*> [#uses=1] |
| 34 | @.str2 = internal constant [52 x i8] c"4.2.1 (Based on Apple Inc. build 5555) (LLVM build)\00", section "llvm.metadata" ; <[52 x i8]*> [#uses=1] |
| 35 | @.str3 = internal constant [2 x i8] c"x\00", section "llvm.metadata" ; <[2 x i8]*> [#uses=1] |
| 36 | @llvm.dbg.basictype = internal constant %llvm.dbg.basictype.type { |
| 37 | i32 393252, |
| 38 | { }* bitcast (%llvm.dbg.compile_unit.type* @llvm.dbg.compile_unit to { }*), |
| 39 | i8* getelementptr ([4 x i8]* @.str4, i32 0, i32 0), |
| 40 | { }* null, |
| 41 | i32 0, |
| 42 | i64 32, |
| 43 | i64 32, |
| 44 | i64 0, |
| 45 | i32 0, |
| 46 | i32 5 }, section "llvm.metadata" ; <%llvm.dbg.basictype.type*> [#uses=1] |
| 47 | @.str4 = internal constant [4 x i8] c"int\00", section "llvm.metadata" ; <[4 x i8]*> [#uses=1] |