diff options
Diffstat (limited to 'include/llvm/Pass.h')
-rw-r--r-- | include/llvm/Pass.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Pass.h b/include/llvm/Pass.h index f3f71c8..eb4c922 100644 --- a/include/llvm/Pass.h +++ b/include/llvm/Pass.h @@ -46,6 +46,7 @@ class PMStack; class AnalysisResolver; class PMDataManager; class raw_ostream; +class StringRef; // AnalysisID - Use the PassInfo to identify a pass... typedef const PassInfo* AnalysisID; @@ -164,6 +165,10 @@ public: // or null if it is not known. 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 PassInfo *lookupPassInfo(const StringRef &Arg); + /// getAnalysisIfAvailable<AnalysisType>() - Subclasses use this function to /// get analysis information that might be around, for example to update it. /// This is different than getAnalysis in that it can fail (if the analysis |