search for: strncpy_func

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

2013 Nov 26
0
[LLVMdev] Help needed with a pass
...e.h"#include "llvm/PassManager.h"#include "llvm/Analysis/Verifier.h"#include "llvm/Assembly/PrintModulePass.h"#include "llvm/IR/IRBuilder.h" using namespace llvm; Module* makeLLVMModule() { Module* mod = new Module(getGlobalContext()); Function* strncpy_func = cast<Function>(mod->getOrInsertFunction(new StringRef("strncpy"), Type::getInt32Ty(getGlobalContext()), Type::getInt32Ty(getGlobalContext()), Type::getInt32Ty(getGlobalContext()), NULL)); Function* printf_func = cast<Function>(mod->getOrInsertFunction(new StringR...