summaryrefslogtreecommitdiff
path: root/include/llvm/Pass.h
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2012-02-08 21:22:34 +0000
committerAndrew Trick <atrick@apple.com>2012-02-08 21:22:34 +0000
commitebe18ef5c286bb7c33f6c43f1963a7d22cd73f40 (patch)
tree12f4475c878f26c4df8b576e9bc411c10ee7d886 /include/llvm/Pass.h
parentd2a7bedbc9d3db35ff424a6a2d257c72341af224 (diff)
downloadllvm-ebe18ef5c286bb7c33f6c43f1963a7d22cd73f40.tar.gz
llvm-ebe18ef5c286bb7c33f6c43f1963a7d22cd73f40.tar.bz2
llvm-ebe18ef5c286bb7c33f6c43f1963a7d22cd73f40.tar.xz
Added Pass::createPass(ID) to handle pass configuration by ID
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150092 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Pass.h')
-rw-r--r--include/llvm/Pass.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Pass.h b/include/llvm/Pass.h
index 104b272d09..a0cbca121d 100644
--- a/include/llvm/Pass.h
+++ b/include/llvm/Pass.h
@@ -175,6 +175,10 @@ public:
// argument string, or null if it is not known.
static const PassInfo *lookupPassInfo(StringRef Arg);
+ // createPass - Create a object for the specified pass class,
+ // or null if it is not known.
+ static Pass *createPass(char &TI);
+
/// 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