search for: my_global_constructor

Displaying 2 results from an estimated 2 matches for "my_global_constructor".

2011 Aug 09
3
[LLVMdev] Adding a module in a pass
...obal constructors there. This appears to be correct. Here is a dump of the module after the pass: ; ModuleID = 'my_module' @my_literal = internal constant [6 x i8] c"Hello\00" @llvm.global_ctors = appending global [1 x { i32, void ()* }] [void () { i32 65535, void ()* @my_global_constructor }] define void @my_global_constructor() { %puts = call i32 @puts(i8* getelementptr inbounds ([6 x i8]* @my_literal, i32 0, i32 0)) } declare i32 @puts(i8* nocapture) nounwind My problem is that this module is not linked into the executable. Do I need to insert the module somewher...
2011 Aug 09
0
[LLVMdev] Adding a module in a pass
...rs to be correct. Here is a > dump of the module after the pass: > > ; ModuleID = 'my_module' > > @my_literal = internal constant [6 x i8] c"Hello\00" > @llvm.global_ctors = appending global [1 x { i32, void ()* }] [void > () { i32 65535, void ()* @my_global_constructor }] > > define void @my_global_constructor() { > %puts = call i32 @puts(i8* getelementptr inbounds ([6 x i8]* > @my_literal, i32 0, i32 0)) > } > > declare i32 @puts(i8* nocapture) nounwind > > My problem is that this module is not linked into the executa...