Home
last modified time | relevance | path

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

/external/llvm/lib/Transforms/IPO/
DGlobalDCE.cpp96 std::vector<GlobalVariable*> DeadGlobalVars; // Keep track of dead globals in runOnModule() local
100 DeadGlobalVars.push_back(I); // Keep track of dead globals in runOnModule()
133 if (!DeadGlobalVars.empty()) { in runOnModule()
134 for (unsigned i = 0, e = DeadGlobalVars.size(); i != e; ++i) { in runOnModule()
135 RemoveUnusedGlobalValue(*DeadGlobalVars[i]); in runOnModule()
136 M.getGlobalList().erase(DeadGlobalVars[i]); in runOnModule()
138 NumVariables += DeadGlobalVars.size(); in runOnModule()