mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-30 02:25:19 +00:00
Start moving pass registration over to using the ManagedStatic mechanism.
This fixes issues where passes get unregistered before llvm_shutdown is called, and is generally cleaner and simpler. Analysis groups up next. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32108 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -74,14 +74,6 @@ public:
|
||||
}
|
||||
virtual void passEnumerate(const PassInfo *P) { passRegistered(P); }
|
||||
|
||||
virtual void passUnregistered(const PassInfo *P) {
|
||||
if (ignorablePass(P) || !Opt) return;
|
||||
assert(findOption(P->getPassArgument()) != getNumOptions() &&
|
||||
"Registered Pass not in the pass map!");
|
||||
removeLiteralOption(P->getPassArgument());
|
||||
Opt->removeArgument(P->getPassArgument());
|
||||
}
|
||||
|
||||
// ValLessThan - Provide a sorting comparator for Values elements...
|
||||
typedef std::pair<const char*,
|
||||
std::pair<const PassInfo*, const char*> > ValType;
|
||||
|
Reference in New Issue
Block a user