diff options
| author | Owen Anderson <resistor@mac.com> | 2010-07-20 06:52:42 +0000 |
|---|---|---|
| committer | Owen Anderson <resistor@mac.com> | 2010-07-20 06:52:42 +0000 |
| commit | 0e493f5f82ca7b430758ded7a505aa0f2af4674b (patch) | |
| tree | 7889e2469b15eb4e9c1202063139b1ef0f8591b1 /include/llvm/Support/PassNameParser.h | |
| parent | c045005458f070655bc119d0a1f26bac7efc8b04 (diff) | |
| download | external_llvm-0e493f5f82ca7b430758ded7a505aa0f2af4674b.zip external_llvm-0e493f5f82ca7b430758ded7a505aa0f2af4674b.tar.gz external_llvm-0e493f5f82ca7b430758ded7a505aa0f2af4674b.tar.bz2 | |
Reapply r108794, a fix for the failing test from last time.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108813 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/PassNameParser.h')
| -rw-r--r-- | include/llvm/Support/PassNameParser.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/include/llvm/Support/PassNameParser.h b/include/llvm/Support/PassNameParser.h index cdca978..c356439 100644 --- a/include/llvm/Support/PassNameParser.h +++ b/include/llvm/Support/PassNameParser.h @@ -55,9 +55,11 @@ public: // ignorablePassImpl - Can be overriden in subclasses to refine the list of // which passes we want to include. // - virtual bool ignorablePassImpl(const PassInfo *P) const { return false; } + virtual bool ignorablePassImpl(const StaticPassInfo *P) const { + return false; + } - inline bool ignorablePass(const PassInfo *P) const { + inline bool ignorablePass(const StaticPassInfo *P) const { // Ignore non-selectable and non-constructible passes! Ignore // non-optimizations. return P->getPassArgument() == 0 || *P->getPassArgument() == 0 || @@ -66,7 +68,7 @@ public: // Implement the PassRegistrationListener callbacks used to populate our map // - virtual void passRegistered(const PassInfo *P) { + virtual void passRegistered(const StaticPassInfo *P) { if (ignorablePass(P) || !Opt) return; if (findOption(P->getPassArgument()) != getNumOptions()) { errs() << "Two passes with the same argument (-" @@ -75,7 +77,7 @@ public: } addLiteralOption(P->getPassArgument(), P, P->getPassName()); } - virtual void passEnumerate(const PassInfo *P) { passRegistered(P); } + virtual void passEnumerate(const StaticPassInfo *P) { passRegistered(P); } // ValLessThan - Provide a sorting comparator for Values elements... typedef std::pair<const char*, @@ -105,7 +107,7 @@ private: Filter filter; public: - bool ignorablePassImpl(const PassInfo *P) const { return !filter(*P); } + bool ignorablePassImpl(const StaticPassInfo *P) const { return !filter(*P); } }; ///===----------------------------------------------------------------------===// |
