| 232 | } |
| 233 | |
| 234 | void Function::removeBB(BasicBlock &BB) { |
| 235 | assert(BB.getName() != "#sink"); |
| 236 | BBs.erase(BB.getName()); |
| 237 | |
| 238 | for (auto I = BB_order.begin(), E = BB_order.end(); I != E; ++I) { |
| 239 | if (*I == &BB) { |
| 240 | BB_order.erase(I); |
| 241 | break; |
| 242 | } |
| 243 | } |
| 244 | } |
| 245 | |
| 246 | void Function::addConstant(unique_ptr<Value> &&c) { |
| 247 | constants.emplace_back(std::move(c)); |
no test coverage detected