Home
last modified time | relevance | path

Searched refs:DeadFunctions (Results 1 – 1 of 1) sorted by relevance

/external/llvm/lib/Transforms/IPO/
DGlobalDCE.cpp105 std::vector<Function*> DeadFunctions; in runOnModule() local
108 DeadFunctions.push_back(I); // Keep track of dead globals in runOnModule()
122 if (!DeadFunctions.empty()) { in runOnModule()
125 for (unsigned i = 0, e = DeadFunctions.size(); i != e; ++i) { in runOnModule()
126 RemoveUnusedGlobalValue(*DeadFunctions[i]); in runOnModule()
127 M.getFunctionList().erase(DeadFunctions[i]); in runOnModule()
129 NumFunctions += DeadFunctions.size(); in runOnModule()