#include “CBIInstrument.h”
using namespace llvm;
Copyright By PowCoder代写 加微信 powcoder
namespace instrument {
static const char *CBIBranchFunctionName = “__cbi_branch__”;
static const char *CBIReturnFunctionName = “__cbi_return__”;
* Implement instrumentation for the branch scheme of CBI.
void instrumentCBIBranches(Module *M, Function &F, BranchInst &I) {
/* Add your code here */
* Implement instrumentation for the return scheme of CBI.
void instrumentCBIReturns(Module *M, Function &F, CallInst &I) {
/* Add your code here */
bool CBIInstrument::runOnFunction(Function &F) {
/* Add your code here */
return true;
char CBIInstrument::ID = 1;
static RegisterPass
“Instrumentations for CBI”, false, false);
} // namespace instrument
程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com