search for: my_strncpy

Displaying 3 results from an estimated 3 matches for "my_strncpy".

2013 Dec 03
1
[LLVMdev] Help with creating and replacing instructions in LLVM
...nd to change call to strcpy with strncpy. I have included the following code in runOnFunction, so that when it is strcpy's turn to be invoked, strncpy is invoked instead. Assuming I* is the strcpy instruction, CallInst* x=new CallInst::CreateCall3(strncpy,1,2,ConstantInt(16),llvm::Twine("my_strncpy")); ReplaceInstWithInst(I*,x); I'm running into a whole bunch of errors in CreateCall3(). How can I go about writing this correctly? Any help would be appreciated. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail...
2013 Dec 03
1
[LLVMdev] Help needed with creating new and replacing an old instruction
...i8* %2) #2I intend to change call to strcpy with strncpy. I have included the following code in runOnFunction, so that when it is strcpy's turn to be invoked, strncpy is invoked instead.Assuming I* is the strcpy instruction,CallInst* x=new CallInst::CreateCall3(strncpy,1,2,ConstantInt(16),"my_strncpy");ReplaceInstWithInst(I*,x);I'm running into a whole bunch of errors in CreateCall3(). How can I go about writing this correctly?Any help would be appreciated.Thanks.Marc----email.biz access any email create any email -------------- next part -------------- An HTML attachment was scrubbe...
2013 Dec 03
0
[LLVMdev] Help needed with creating new and replacing an old instruction
...en it is strcpy's turn to be invoked, strncpy is invoked instead.</div><div><br></div><div>Assuming I* is the strcpy instruction,</div><div><br></div><div><b>CallInst* x=new CallInst::CreateCall3(strncpy,1,2,ConstantInt(16),"my_strncpy");</b></div><div><b>ReplaceInstWithInst(I*,x);</b></div><div><br></div><div>I'm running into a whole bunch of errors in CreateCall3(). How can I go about writing this correctly?</div><div><br></div><div&...