Remove automagic support for Modules. Noone uses it now anyways, and GCC 3.4 doesn...
authorChris Lattner <sabre@nondot.org>
Fri, 29 Aug 2003 14:48:21 +0000 (14:48 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 29 Aug 2003 14:48:21 +0000 (14:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8216 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/InstVisitor.h

index 932bd91a6a58dc7d032c103eac9baba801b23f1c..a1a53280d4efde49c72cb4262860b833bd0db2df 100644 (file)
@@ -78,12 +78,8 @@ struct InstVisitor {
       ((SubClass*)this)->visit(*Start++);
   }
 
-  // Define visitors for modules, functions and basic blocks...
+  // 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());
@@ -123,7 +119,6 @@ struct InstVisitor {
   // 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) {}