From 004caf4ded406c5699eb575337b0ed865483126e Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 29 Aug 2003 14:48:21 +0000 Subject: [PATCH] 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 --- include/llvm/Support/InstVisitor.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/include/llvm/Support/InstVisitor.h b/include/llvm/Support/InstVisitor.h index 932bd91a6a5..a1a53280d4e 100644 --- a/include/llvm/Support/InstVisitor.h +++ b/include/llvm/Support/InstVisitor.h @@ -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) {}