From d46575f1908b1fb9950e610a1f36733893ad44b1 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Sat, 21 Apr 2012 23:59:16 +0000 Subject: Add a flag to the struct type finder to collect only those types which have names. This saves collecting types we normally don't care about. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155300 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Module.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/llvm/Module.h') diff --git a/include/llvm/Module.h b/include/llvm/Module.h index b9c98814f1..570b1bc7b4 100644 --- a/include/llvm/Module.h +++ b/include/llvm/Module.h @@ -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 &StructTypes) const; + 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. -- cgit v1.2.3-18-g5258