Remove the reduceApply functions they are obsolete things from the days before
authorChris Lattner <sabre@nondot.org>
Thu, 28 Mar 2002 22:49:49 +0000 (22:49 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 28 Mar 2002 22:49:49 +0000 (22:49 +0000)
we had a reasonable pass system

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2022 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Module.h
lib/VMCore/Module.cpp

index 8223f6f61257e406af66c3bc6ad5e0422b0bbbfe..d7d9240f3aca47d77e556856b6db7f358295d73a 100644 (file)
@@ -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; }
index 06c25d366c5db3ec02ceca67e46c3df1cdec89ac..144c6f35578874c0fd673721b1d6b648ff693e13 100644 (file)
@@ -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...