mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-15 20:06:46 +00:00
13 lines
392 B
LLVM
13 lines
392 B
LLVM
|
@.str = private unnamed_addr constant [13 x i8] c"Hello World\0A\00", align 1
|
||
|
|
||
|
define i32 @main() nounwind {
|
||
|
entry:
|
||
|
%call = tail call i32 @puts(i8* getelementptr inbounds ([13 x i8]* @.str, i32 0, i32 0)) nounwind
|
||
|
tail call void bitcast (void (...)* @SomeOtherFunction to void ()*)() nounwind
|
||
|
ret i32 0
|
||
|
}
|
||
|
|
||
|
declare i32 @puts(i8* nocapture) nounwind
|
||
|
|
||
|
declare void @SomeOtherFunction(...)
|