Deleted Added
full compact
MachinePassRegistry.h (193323) MachinePassRegistry.h (201360)
1//===-- llvm/CodeGen/MachinePassRegistry.h ----------------------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//

--- 115 unchanged lines hidden (view full) ---

124 ~RegisterPassParser() { RegistryClass::setListener(NULL); }
125
126 void initialize(cl::Option &O) {
127 cl::parser<typename RegistryClass::FunctionPassCtor>::initialize(O);
128
129 // Add existing passes to option.
130 for (RegistryClass *Node = RegistryClass::getList();
131 Node; Node = Node->getNext()) {
1//===-- llvm/CodeGen/MachinePassRegistry.h ----------------------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//

--- 115 unchanged lines hidden (view full) ---

124 ~RegisterPassParser() { RegistryClass::setListener(NULL); }
125
126 void initialize(cl::Option &O) {
127 cl::parser<typename RegistryClass::FunctionPassCtor>::initialize(O);
128
129 // Add existing passes to option.
130 for (RegistryClass *Node = RegistryClass::getList();
131 Node; Node = Node->getNext()) {
132 addLiteralOption(Node->getName(),
132 this->addLiteralOption(Node->getName(),
133 (typename RegistryClass::FunctionPassCtor)Node->getCtor(),
133 (typename RegistryClass::FunctionPassCtor)Node->getCtor(),
134 Node->getDescription());
134 Node->getDescription());
135 }
136
137 // Make sure we listen for list changes.
138 RegistryClass::setListener(this);
139 }
140
141 // Implement the MachinePassRegistryListener callbacks.
142 //

--- 14 unchanged lines hidden ---
135 }
136
137 // Make sure we listen for list changes.
138 RegistryClass::setListener(this);
139 }
140
141 // Implement the MachinePassRegistryListener callbacks.
142 //

--- 14 unchanged lines hidden ---