From 1ea4efb41a10a3d22b438c5ef0e39a5ee6a27eaf Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Fri, 18 Dec 2015 22:44:07 +0000 Subject: Delete dead code: only functions are materializable. llvm-svn: 256052 --- llvm/tools/llvm-extract/llvm-extract.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'llvm/tools/llvm-extract') diff --git a/llvm/tools/llvm-extract/llvm-extract.cpp b/llvm/tools/llvm-extract/llvm-extract.cpp index ca228da74d8..de4288dd6ad 100644 --- a/llvm/tools/llvm-extract/llvm-extract.cpp +++ b/llvm/tools/llvm-extract/llvm-extract.cpp @@ -236,10 +236,6 @@ int main(int argc, char **argv) { } else { // Deleting. Materialize every GV that's *not* in GVs. SmallPtrSet 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); -- cgit v1.2.3