From: Chris Lattner Date: Sat, 30 Jun 2001 04:34:42 +0000 (+0000) Subject: Add a reduceApply method X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d180e0fda7dc9be32a63f22b4399019c0836bc40;p=oota-llvm.git Add a reduceApply method git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Module.h b/include/llvm/Module.h index da5024b408f..d02b3a050ea 100644 --- a/include/llvm/Module.h +++ b/include/llvm/Module.h @@ -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; }