aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/PassAnalysisSupport.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-07-29 21:03:33 +0000
committerChris Lattner <sabre@nondot.org>2002-07-29 21:03:33 +0000
commiteb702350f7ac9c8910755fba44a98bc9a09beb4f (patch)
tree56f9670aa484a8be5743690de6560cbe2240a249 /include/llvm/PassAnalysisSupport.h
parent44050fb25a37a72ba74da9b0c8b41973325a7995 (diff)
downloadexternal_llvm-eb702350f7ac9c8910755fba44a98bc9a09beb4f.zip
external_llvm-eb702350f7ac9c8910755fba44a98bc9a09beb4f.tar.gz
external_llvm-eb702350f7ac9c8910755fba44a98bc9a09beb4f.tar.bz2
* Eliminate the Provided set. All Passes now finally just automatically
provide themselves. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3124 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/PassAnalysisSupport.h')
-rw-r--r--include/llvm/PassAnalysisSupport.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/include/llvm/PassAnalysisSupport.h b/include/llvm/PassAnalysisSupport.h
index e59399d..092be34 100644
--- a/include/llvm/PassAnalysisSupport.h
+++ b/include/llvm/PassAnalysisSupport.h
@@ -25,7 +25,7 @@
//
class AnalysisUsage {
// Sets of analyses required and preserved by a pass
- std::vector<AnalysisID> Required, Preserved, Provided;
+ std::vector<AnalysisID> Required, Preserved;
bool PreservesAll;
public:
AnalysisUsage() : PreservesAll(false) {}
@@ -46,10 +46,6 @@ public:
return *this;
}
- void addProvided(AnalysisID ID) {
- Provided.push_back(ID);
- }
-
// PreservesAll - Set by analyses that do not transform their input at all
void setPreservesAll() { PreservesAll = true; }
bool preservesAll() const { return PreservesAll; }
@@ -67,13 +63,12 @@ public:
const std::vector<AnalysisID> &getRequiredSet() const { return Required; }
const std::vector<AnalysisID> &getPreservedSet() const { return Preserved; }
- const std::vector<AnalysisID> &getProvidedSet() const { return Provided; }
};
//===----------------------------------------------------------------------===//
-// AnalysisResolver - Simple interface implemented by PassManagers objects that
+// AnalysisResolver - Simple interface implemented by PassManager objects that
// is used to pull analysis information out of them.
//
struct AnalysisResolver {
@@ -87,8 +82,7 @@ struct AnalysisResolver {
// getAnalysisToUpdate - Return an analysis result or null if it doesn't exist
Pass *getAnalysisToUpdate(AnalysisID ID) {
- Pass *Result = getAnalysisOrNullUp(ID);
- return Result;
+ return getAnalysisOrNullUp(ID);
}
virtual unsigned getDepth() const = 0;