search for: llvm_ilist_push_back

Displaying 1 result from an estimated 1 matches for "llvm_ilist_push_back".

2004 Oct 06
1
[LLVMdev] generating function declarations in c frontend
...eate_struct(0, 0); structTy = llvm_type_get_cannonical_struct(structTy); ptrToStructTy = llvm_type_get_pointer(structTy); llvm_function *dbg_stoppoint_fn = llvm_function_new(ptrToStructTy, "llvm.dbg.stoppoint"); llvm_argument *arg = llvm_argument_new(structTy, "foo"); llvm_ilist_push_back(llvm_value, dbg_stoppoint_fn->Arguments, arg); /* line # 548 */ llvm_ilist_push_back(llvm_global, TheProgram.Globals, dbg_stoppoint_fn); This doesn't compile, but at first glance I'm not sure why, since I see in other places an llvm_argument being created then added to the Argum...