diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-07-20 03:06:07 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-07-20 03:06:07 +0000 |
commit | e8a469cdb400249ec263c79d1021f953f42f2760 (patch) | |
tree | 7e8a5fbe32425e7360d052e45caa82e9b6191fcc /include/llvm/Support/PassNameParser.h | |
parent | 8ba15cb7099d9eadcb345328228d77ffa5afa42d (diff) | |
download | external_llvm-e8a469cdb400249ec263c79d1021f953f42f2760.zip external_llvm-e8a469cdb400249ec263c79d1021f953f42f2760.tar.gz external_llvm-e8a469cdb400249ec263c79d1021f953f42f2760.tar.bz2 |
Revert r108794, "Separate PassInfo into two classes: a constructor-free
superclass (StaticPassInfo) and a constructor-ful subclass (PassInfo).", it is
breaking teh everything.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108805 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, 5 insertions, 7 deletions
diff --git a/include/llvm/Support/PassNameParser.h b/include/llvm/Support/PassNameParser.h index c356439..cdca978 100644 --- a/include/llvm/Support/PassNameParser.h +++ b/include/llvm/Support/PassNameParser.h @@ -55,11 +55,9 @@ public: // ignorablePassImpl - Can be overriden in subclasses to refine the list of // which passes we want to include. // - virtual bool ignorablePassImpl(const StaticPassInfo *P) const { - return false; - } + virtual bool ignorablePassImpl(const PassInfo *P) const { return false; } - inline bool ignorablePass(const StaticPassInfo *P) const { + inline bool ignorablePass(const PassInfo *P) const { // Ignore non-selectable and non-constructible passes! Ignore // non-optimizations. return P->getPassArgument() == 0 || *P->getPassArgument() == 0 || @@ -68,7 +66,7 @@ public: // Implement the PassRegistrationListener callbacks used to populate our map // - virtual void passRegistered(const StaticPassInfo *P) { + virtual void passRegistered(const PassInfo *P) { if (ignorablePass(P) || !Opt) return; if (findOption(P->getPassArgument()) != getNumOptions()) { errs() << "Two passes with the same argument (-" @@ -77,7 +75,7 @@ public: } addLiteralOption(P->getPassArgument(), P, P->getPassName()); } - virtual void passEnumerate(const StaticPassInfo *P) { passRegistered(P); } + virtual void passEnumerate(const PassInfo *P) { passRegistered(P); } // ValLessThan - Provide a sorting comparator for Values elements... typedef std::pair<const char*, @@ -107,7 +105,7 @@ private: Filter filter; public: - bool ignorablePassImpl(const StaticPassInfo *P) const { return !filter(*P); } + bool ignorablePassImpl(const PassInfo *P) const { return !filter(*P); } }; ///===----------------------------------------------------------------------===// |