Michael J. Spencer | 8ab7b03 | 2011-10-25 22:30:58 +0000 | [diff] [blame] | 1 | @.str = private unnamed_addr constant [13 x i8] c"Hello World\0A\00", align 1 |
| 2 | |
| 3 | define i32 @main() nounwind { |
| 4 | entry: |
| 5 | %call = tail call i32 @puts(i8* getelementptr inbounds ([13 x i8]* @.str, i32 0, i32 0)) nounwind |
| 6 | tail call void bitcast (void (...)* @SomeOtherFunction to void ()*)() nounwind |
| 7 | ret i32 0 |
| 8 | } |
| 9 | |
| 10 | declare i32 @puts(i8* nocapture) nounwind |
| 11 | |
| 12 | declare void @SomeOtherFunction(...) |
Rafael Espindola | b674c17 | 2014-07-04 15:03:17 +0000 | [diff] [blame] | 13 | |
| 14 | @var = global i32 0 |
| 15 | @llvm.used = appending global [1 x i8*] [i8* bitcast (i32* @var to i8*)], section "llvm.metadata" |