aboutsummaryrefslogtreecommitdiffstats
path: root/include
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
parentd2a7bedbc9d3db35ff424a6a2d257c72341af224 (diff)
downloadexternal_llvm-ebe18ef5c286bb7c33f6c43f1963a7d22cd73f40.zip
external_llvm-ebe18ef5c286bb7c33f6c43f1963a7d22cd73f40.tar.gz
external_llvm-ebe18ef5c286bb7c33f6c43f1963a7d22cd73f40.tar.bz2
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')
-rw-r--r--include/llvm/CodeGen/Passes.h2
-rw-r--r--include/llvm/Pass.h4
2 files changed, 5 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/Passes.h b/include/llvm/CodeGen/Passes.h
index 2585aeb..8849571 100644
--- a/include/llvm/CodeGen/Passes.h
+++ b/include/llvm/CodeGen/Passes.h
@@ -135,7 +135,7 @@ protected:
///
/// Add a target-independent CodeGen pass at this point in the pipeline.
- void addCommonPass(char &ID);
+ void addPass(char &ID);
/// printNoVerify - Add a pass to dump the machine function, if debugging is
/// enabled.
diff --git a/include/llvm/Pass.h b/include/llvm/Pass.h
index 104b272..a0cbca1 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