llvm.org GIT mirror llvm / 63e4ccb
add some  's to a pre to avoid newlines being eaten and the formatting being thrown off. I admit to not knowing what is going on here. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111249 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 9 years ago
1 changed file(s) with 13 addition(s) and 12 deletion(s). Raw diff Collapse all Expand all
490490 the "hello world" module:

491491
492492

                  
                
493 ; Declare the string constant as a global constant.
494 @.LC0 = internal constant [13 x i8] c"hello world\0A\00" ; [13 x i8]*
495
496 ; External declaration of the puts function
497 <a href="#functionstructure">declare i32 @puts(i8*) ; i32 (i8*)*
493 <i>; Declare the string constant as a global constant. 
494 @.LC0 = internal constant [13 x i8] c"hello world\0A\00" ; [13 x i8]* 
495
496 ; External declaration of the puts function 
497 declare i32 @puts(i8*) ; i32 (i8*)*  
498498
499499 ; Definition of main function
500 define i32 @main() { ; i32()*
501 ; Convert [13 x i8]* to i8 *...
502 %cast210 = getelementptr [13 x i8]* @.LC0, i64 0, i64 0 ; i8*
503
504 ; Call puts function to write out the string to stdout.
505 call i32 @puts(i8* %cast210) ; i32
506 ret i32 0
}
500 define i32 @main() { ; i32()*  
501 ; Convert [13 x i8]* to i8 *... 
502 %cast210 = getelementptr [13 x i8]* @.LC0, i64 0, i64 0 ; i8* 
503
504 ; Call puts function to write out the string to stdout. 
505 call i32 @puts(i8* %cast210) ; i32 
506 ret i32 0 
507 }
507508
508509 ; Named metadata
509510 !1 = metadata !{i32 41}