llvm.org GIT mirror llvm / 004caf4
Remove automagic support for Modules. Noone uses it now anyways, and GCC 3.4 doesn't want us to do this unless Module has been #included git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8216 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 16 years ago
1 changed file(s) with 1 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
7777 ((SubClass*)this)->visit(*Start++);
7878 }
7979
80 // Define visitors for modules, functions and basic blocks...
80 // Define visitors for functions and basic blocks...
8181 //
82 void visit(Module &M) {
83 ((SubClass*)this)->visitModule(M);
84 visit(M.begin(), M.end());
85 }
8682 void visit(Function &F) {
8783 ((SubClass*)this)->visitFunction(F);
8884 visit(F.begin(), F.end());
122118 // When visiting a module, function or basic block directly, these methods get
123119 // called to indicate when transitioning into a new unit.
124120 //
125 void visitModule (Module &M) {}
126121 void visitFunction (Function &F) {}
127122 void visitBasicBlock(BasicBlock &BB) {}
128123