mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
8089fee2dd
It is not clear if llvm.global_ctors should or should not be in llvm.metadata, but in practice it is not and we need to ignore it for LTO. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212351 91177308-0d34-0410-b5e6-96231b3b80d8
17 lines
642 B
LLVM
17 lines
642 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(...)
|
|
|
|
@var = global i32 0
|
|
@llvm.used = appending global [1 x i8*] [i8* bitcast (i32* @var to i8*)], section "llvm.metadata"
|
|
@llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* null, i8* null }]
|