search for: 9b542fa2

Displaying 3 results from an estimated 3 matches for "9b542fa2".

2011 Mar 31
0
[LLVMdev] inserting exit function into IR
On Thu, Mar 31, 2011 at 9:57 PM, George Baah <georgebaah at gmail.com> wrote: > I did M.getOrInsertFunction and called the exit function with . > > IRBuilder<> builder = IRBuilder<>(...); > > Value *one = ConstantInt::get(Type::getInt32Ty(M.getContext()),1); > > builder.CreateCall(exitF,one,"tmp4"); > > "Instruction has a name, but
2011 Mar 31
1
[LLVMdev] inserting exit function into IR
...; > Broken module found, compilation aborted! " > > So... don't give the call a name? (just remove the "tmp4" parameter) > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110331/9b542fa2/attachment.html>
2011 Mar 31
2
[LLVMdev] inserting exit function into IR
I did M.getOrInsertFunction and called the exit function with . IRBuilder<> builder = IRBuilder<>(...); Value *one = ConstantInt::get(Type::getInt32Ty(M.getContext()),1); builder.CreateCall(exitF,one,"tmp4"); "Instruction has a name, but provides a void value! %tmp4 = call void @exit(i32 1) Broken module found, compilation aborted! " On Thu, Mar 31,