17 lines · plain
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=pic3; llc -mtriple=x86_64-apple-darwin10 trivial.ll -filetype=obj -o trivial.obj.macho-x86-64 -relocation-model=pic4 5@.str = private unnamed_addr constant [13 x i8] c"Hello World\0A\00", align 16 7define i32 @main() nounwind {8entry:9 %call = tail call i32 @puts(ptr @.str) nounwind10 tail call void @SomeOtherFunction() nounwind11 ret i32 012}13 14declare i32 @puts(ptr nocapture) nounwind15 16declare void @SomeOtherFunction(...)17