Add a flag to the struct type finder to collect only those types which have
[oota-llvm.git] / include / llvm / Module.h
index b9c98814f15947eae9bd00ab1bf6d93aecd57e0b..570b1bc7b450416b20fd7b22c0f3f8593546e4ce 100644 (file)
@@ -303,7 +303,8 @@ public:
 
   /// 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<StructType*> &StructTypes) const;
+  void findUsedStructTypes(std::vector<StructType*> &StructTypes,
+                           bool OnlyNamed = false) const;
   
   /// getTypeByName - Return the type with the specified name, or null if there
   /// is none by that name.