Home
last modified time | relevance | path

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

/external/llvm/lib/Transforms/IPO/
DGlobalDCE.cpp143 std::vector<Function*> DeadFunctions; in runOnModule() local
146 DeadFunctions.push_back(I); // Keep track of dead globals in runOnModule()
160 if (!DeadFunctions.empty()) { in runOnModule()
163 for (unsigned i = 0, e = DeadFunctions.size(); i != e; ++i) { in runOnModule()
164 RemoveUnusedGlobalValue(*DeadFunctions[i]); in runOnModule()
165 M.getFunctionList().erase(DeadFunctions[i]); in runOnModule()
167 NumFunctions += DeadFunctions.size(); in runOnModule()