From 573e97326766359d3a9747eed7b7d47b6c33fa0f Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Fri, 3 Aug 2012 00:30:35 +0000 Subject: Move the "findUsedStructTypes" functionality outside of the Module class. The "findUsedStructTypes" method is very expensive to run. It needs to be optimized so that LTO can run faster. Splitting this method out of the Module class will help this occur. For instance, it can keep a list of seen objects so that it doesn't process them over and over again. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161228 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Module.h | 5 ----- 1 file changed, 5 deletions(-) (limited to 'include/llvm/Module.h') diff --git a/include/llvm/Module.h b/include/llvm/Module.h index cb7c1dc..e6303ac 100644 --- a/include/llvm/Module.h +++ b/include/llvm/Module.h @@ -301,11 +301,6 @@ public: typedef DenseMap > NumeredTypesMapTy; - /// findUsedStructTypes - Walk the entire module and find all of the - /// struct types that are in use, returning them in a vector. - void findUsedStructTypes(std::vector &StructTypes, - bool OnlyNamed = false) const; - /// getTypeByName - Return the type with the specified name, or null if there /// is none by that name. StructType *getTypeByName(StringRef Name) const; -- cgit v1.1