From cd8846ff846df435bf6e157ed1bd70c61027bb79 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 28 Mar 2002 22:49:49 +0000 Subject: [PATCH] Remove the reduceApply functions they are obsolete things from the days before we had a reasonable pass system llvm-svn: 2022 --- llvm/include/llvm/Module.h | 8 -------- llvm/lib/VMCore/Module.cpp | 16 ---------------- 2 files changed, 24 deletions(-) diff --git a/llvm/include/llvm/Module.h b/llvm/include/llvm/Module.h index 8223f6f61257..d7d9240f3aca 100644 --- a/llvm/include/llvm/Module.h +++ b/llvm/include/llvm/Module.h @@ -52,14 +52,6 @@ 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)(GlobalVariable*)); - bool reduceApply(bool (*Func)(const GlobalVariable*)) const; - bool reduceApply(bool (*Func)(Function*)); - bool reduceApply(bool (*Func)(const Function*)) const; - // Get the underlying elements of the Module... inline const GlobalListType &getGlobalList() const { return GlobalList; } inline GlobalListType &getGlobalList() { return GlobalList; } diff --git a/llvm/lib/VMCore/Module.cpp b/llvm/lib/VMCore/Module.cpp index 06c25d366c5d..144c6f355788 100644 --- a/llvm/lib/VMCore/Module.cpp +++ b/llvm/lib/VMCore/Module.cpp @@ -71,22 +71,6 @@ void Module::dropAllReferences() { } } -// 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 Module::reduceApply(bool (*Func)(GlobalVariable*)) { - return reduce_apply_bool(gbegin(), gend(), Func); -} -bool Module::reduceApply(bool (*Func)(const GlobalVariable*)) const { - return reduce_apply_bool(gbegin(), gend(), Func); -} -bool Module::reduceApply(bool (*Func)(Function*)) { - return reduce_apply_bool(begin(), end(), Func); -} -bool Module::reduceApply(bool (*Func)(const Function*)) const { - return reduce_apply_bool(begin(), end(), Func); -} - // Accessor for the underlying GlobalValRefMap... ConstantPointerRef *Module::getConstantPointerRef(GlobalValue *V){ // Create ref map lazily on demand...