Add a reduceApply method
authorChris Lattner <sabre@nondot.org>
Sat, 30 Jun 2001 04:34:42 +0000 (04:34 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 30 Jun 2001 04:34:42 +0000 (04:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Module.h

index da5024b408fce47411cd42bf21dbb72609abf4e8..d02b3a050eacd7b65d0eff75d8c8d3b8b4913f68 100644 (file)
@@ -27,6 +27,13 @@ public:
   Module();
   ~Module();
 
+  // reduceApply - Apply the specified function to all of the methods in this 
+  // module.  The result values are or'd together and the result is returned.
+  //
+  bool reduceApply(bool (*Func)(Method*));
+  bool reduceApply(bool (*Func)(const Method*)) const;
+
+
   // Get the underlying elements of the Module...
   inline const MethodListType &getMethodList() const  { return MethodList; }
   inline       MethodListType &getMethodList()        { return MethodList; }