aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Module.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-06-30 04:34:42 +0000
committerChris Lattner <sabre@nondot.org>2001-06-30 04:34:42 +0000
commitd180e0fda7dc9be32a63f22b4399019c0836bc40 (patch)
tree26e0ccede10af152c27682f96e6a0e6846a7149b /include/llvm/Module.h
parent50d0b7ec3f58d13ea5613dde60a15b07532de56e (diff)
Add a reduceApply method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Module.h')
-rw-r--r--include/llvm/Module.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/Module.h b/include/llvm/Module.h
index da5024b408..d02b3a050e 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; }