Displaying 1 result from an estimated 1 matches for "visitinst".
Did you mean:
virtinst
2014 Jan 09
2
[LLVMdev] InstVisitor usage problem
...virtual bool runOnModule(Module &M)
{
visit(M);
return false;
}
void visitStoreInst(StoreInst &SI)
{
errs()<<"a store inst:"<<&SI<<"\n";
}
};
char InstVisit::ID = 0;
static RegisterPass<InstVisit>
X("visitInst","visit inst test");
}
then I use
opt -load /home/king/llvm/Release+Asserts/lib/instVisit.so
-visitInst<load.bc> /dev/null
to run the pass. but it appears such errors:
0 opt 0x00000000012700d2 llvm::sys::PrintStackTrace(_IO_FILE*)
+ 34
1 opt 0x0000...