[llvm] r256052 - Delete dead code: only functions are materializable.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 18 14:44:07 PST 2015
Author: rafael
Date: Fri Dec 18 16:44:07 2015
New Revision: 256052
URL: http://llvm.org/viewvc/llvm-project?rev=256052&view=rev
Log:
Delete dead code: only functions are materializable.
Modified:
llvm/trunk/tools/llvm-extract/llvm-extract.cpp
Modified: llvm/trunk/tools/llvm-extract/llvm-extract.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-extract/llvm-extract.cpp?rev=256052&r1=256051&r2=256052&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-extract/llvm-extract.cpp (original)
+++ llvm/trunk/tools/llvm-extract/llvm-extract.cpp Fri Dec 18 16:44:07 2015
@@ -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);
More information about the llvm-commits
mailing list