Delete dead code: only functions are materializable.

llvm-svn: 256052
This commit is contained in:
Rafael Espindola 2015-12-18 22:44:07 +00:00
parent 36f51e4c97
commit 1ea4efb41a
1 changed files with 0 additions and 4 deletions

View File

@ -236,10 +236,6 @@ int main(int argc, char **argv) {
} else {
// Deleting. Materialize every GV that's *not* in GVs.
SmallPtrSet<GlobalValue *, 8> GVSet(GVs.begin(), GVs.end());
for (auto &G : M->globals()) {
if (!GVSet.count(&G))
Materialize(G);
}
for (auto &F : *M) {
if (!GVSet.count(&F))
Materialize(F);