Displaying 2 results from an estimated 2 matches for "llvm_gc".
Did you mean:
llvm_gcc
2009 Dec 01
1
[LLVMdev] Troubles with llvm.gcroot and exception handling
...and am struggling with the
following. I have a little test snippet (a .ll file with IR) that uses
llvm.gcroot to mark a GC root, but when I compile it to assembly with
llc, followed by generating an executable with gcc I get an error
related to exception handling:
22:40|melis at juggle2:~/projects/llvm_gc> cat root.ll
%obj = type { i8*, i8, i8 }
declare void @llvm.gcroot(i8**, i8*) nounwind
declare i8* @malloc(i32) nounwind
define i32 @main() nounwind gc "shadow-stack" {
entry:
%ptr = alloca %obj*
%ptr_i8 = bitcast %obj** %ptr to i8**
call void @llvm.gcroot(i8** %ptr_i8, i...
2009 Dec 02
0
[LLVMdev] Troubles with llvm.gcroot and exception handling
[Forgot to include llvmdev in my reply, sending a second time]
Hi Duncan,
Duncan Sands wrote:
>> 22:40|melis at juggle2:~/projects/llvm_gc> llc root.ll
>> 22:40|melis at juggle2:~/projects/llvm_gc> gcc -o r root.s
>> /usr/lib/gcc/i686-pc-linux-gnu/4.3.4/../../../../i686-pc-linux-gnu/bin/ld:
>> error in /tmp/ccGhPZDb.o(.eh_frame); no .eh_frame_hdr table will be
>> created.
>
> the assembler you paste...