// Define visitors for functions and basic blocks...
//
+ void visit(Module &M) {
+ ((SubClass*)this)->visitModule(M);
+ visit(M.begin(), M.end());
+ }
void visit(Function &F) {
((SubClass*)this)->visitFunction(F);
visit(F.begin(), F.end());
// When visiting a module, function or basic block directly, these methods get
// called to indicate when transitioning into a new unit.
//
+ void visitModule (Module &M) {}
void visitFunction (Function &F) {}
void visitBasicBlock(BasicBlock &BB) {}