| 1 |
; Input used for generating checked-in binaries (trivial.obj.*) |
| 2 |
; llc -mtriple=i386-apple-darwin10 trivial.ll -filetype=obj -o trivial.obj.macho-i386 -relocation-model=pic |
| 3 |
; llc -mtriple=x86_64-apple-darwin10 trivial.ll -filetype=obj -o trivial.obj.macho-x86-64 -relocation-model=pic |
| 4 |
|
| 5 |
@.str = private unnamed_addr constant [13 x i8] c"Hello World\0A\00", align 1 |
| 6 |
|
| 7 |
define i32 @main() nounwind { |
| 8 |
entry: |
| 9 |
%call = tail call i32 @puts(ptr @.str) nounwind |
| 10 |
tail call void @SomeOtherFunction() nounwind |
| 11 |
ret i32 0 |
| 12 |
} |
| 13 |
|
| 14 |
declare i32 @puts(ptr nocapture) nounwind |
| 15 |
|
| 16 |
declare void @SomeOtherFunction(...) |