mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-18 10:32:48 +02:00
Delete dead code: only functions are materializable.
llvm-svn: 256052
This commit is contained in:
parent
914b00520f
commit
364ada1a48
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user