From ecd3b686c16a76758f2187a71dda392340e77e92 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Fri, 18 Dec 2015 22:44:07 +0000 Subject: [PATCH] Delete dead code: only functions are materializable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256052 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-extract/llvm-extract.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tools/llvm-extract/llvm-extract.cpp b/tools/llvm-extract/llvm-extract.cpp index ca228da74d8..de4288dd6ad 100644 --- a/tools/llvm-extract/llvm-extract.cpp +++ b/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); -- 2.34.1