search for: 1952dc73

Displaying 2 results from an estimated 2 matches for "1952dc73".

2011 Apr 01
0
[LLVMdev] insert printf into IR
Hi George, > I am trying to insert printf ("%d", v), where v is an integer param, into the IR. > I am doing something wrong because I keep getting segfaults. if you are doing development with LLVM then you should build LLVM with assertions enabled. That way you get understandable failures rather than obscure segmentation faults. > Function *f = cast<Function>(temp);
2011 Apr 01
3
[LLVMdev] insert printf into IR
Hi All, I am trying to insert printf ("%d", v), where v is an integer param, into the IR. I am doing something wrong because I keep getting segfaults. Below is my code. Thanks. vector<const Type *> params; params.push_back(Type::getInt8PtrTy(M.getContext())); params.push_back(Type::getInt32Ty(M.getContext())); FunctionType *fType =