summaryrefslogtreecommitdiff
path: root/include/llvm/Pass.h
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2010-07-20 08:26:15 +0000
committerOwen Anderson <resistor@mac.com>2010-07-20 08:26:15 +0000
commit8be3291f5942e3ae4a5d66c480e7aabe2f771031 (patch)
treec8c82d984f9dc21c27426099f79bd412a2ff95c9 /include/llvm/Pass.h
parent29e9daa75019e6ee7b3305f7ef11a2cd85b96b55 (diff)
downloadllvm-8be3291f5942e3ae4a5d66c480e7aabe2f771031.tar.gz
llvm-8be3291f5942e3ae4a5d66c480e7aabe2f771031.tar.bz2
llvm-8be3291f5942e3ae4a5d66c480e7aabe2f771031.tar.xz
Speculatively revert r108813, in an attempt to get the self-host buildbots working again. I don't see why this patch
would cause them to fail the way they are, but none of the other intervening patches seem likely either. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108818 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Pass.h')
-rw-r--r--include/llvm/Pass.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/include/llvm/Pass.h b/include/llvm/Pass.h
index be73a106bb..5a5893140e 100644
--- a/include/llvm/Pass.h
+++ b/include/llvm/Pass.h
@@ -41,7 +41,6 @@ class BasicBlock;
class Function;
class Module;
class AnalysisUsage;
-class StaticPassInfo;
class PassInfo;
class ImmutablePass;
class PMStack;
@@ -51,7 +50,7 @@ class raw_ostream;
class StringRef;
// AnalysisID - Use the PassInfo to identify a pass...
-typedef const StaticPassInfo* AnalysisID;
+typedef const PassInfo* AnalysisID;
/// Different types of internal pass managers. External pass managers
/// (PassManager and FunctionPassManager) are not represented here.
@@ -105,7 +104,7 @@ public:
/// getPassInfo - Return the PassInfo data structure that corresponds to this
/// pass... If the pass has not been registered, this will return null.
///
- const StaticPassInfo *getPassInfo() const;
+ const PassInfo *getPassInfo() const;
/// print - Print out the internal state of the pass. This is called by
/// Analyze to print out the contents of an analysis. Otherwise it is not
@@ -160,7 +159,7 @@ public:
/// an analysis interface through multiple inheritance. If needed, it should
/// override this to adjust the this pointer as needed for the specified pass
/// info.
- virtual void *getAdjustedAnalysisPointer(const StaticPassInfo *);
+ virtual void *getAdjustedAnalysisPointer(const PassInfo *);
virtual ImmutablePass *getAsImmutablePass();
virtual PMDataManager *getAsPMDataManager();
@@ -172,17 +171,17 @@ public:
virtual void dumpPassStructure(unsigned Offset = 0);
template<typename AnalysisClass>
- static const StaticPassInfo *getClassPassInfo() {
+ static const PassInfo *getClassPassInfo() {
return lookupPassInfo(intptr_t(&AnalysisClass::ID));
}
// lookupPassInfo - Return the pass info object for the specified pass class,
// or null if it is not known.
- static const StaticPassInfo *lookupPassInfo(intptr_t TI);
+ static const PassInfo *lookupPassInfo(intptr_t TI);
// lookupPassInfo - Return the pass info object for the pass with the given
// argument string, or null if it is not known.
- static const StaticPassInfo *lookupPassInfo(StringRef Arg);
+ static const PassInfo *lookupPassInfo(StringRef Arg);
/// getAnalysisIfAvailable<AnalysisType>() - Subclasses use this function to
/// get analysis information that might be around, for example to update it.
@@ -214,10 +213,10 @@ public:
AnalysisType &getAnalysis(Function &F); // Defined in PassAnalysisSupport.h
template<typename AnalysisType>
- AnalysisType &getAnalysisID(const StaticPassInfo *PI) const;
+ AnalysisType &getAnalysisID(const PassInfo *PI) const;
template<typename AnalysisType>
- AnalysisType &getAnalysisID(const StaticPassInfo *PI, Function &F);
+ AnalysisType &getAnalysisID(const PassInfo *PI, Function &F);
};