Skip to content

Commit

Permalink
delete unused decrypt fucntion
Browse files Browse the repository at this point in the history
  • Loading branch information
amimo authored and Ylarod committed May 4, 2021
1 parent ea68136 commit c76f673
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions llvm/lib/Transforms/Obfuscation/StringEncryption.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,11 @@ bool StringEncryption::runOnModule(Module &M) {

// delete unused global variables
deleteUnusedGlobalVariable();
for (CSPEntry *Entry: ConstantStringPool) {
if (Entry->DecFunc->use_empty()) {
Entry->DecFunc->eraseFromParent();
}
}
return Changed;
}

Expand Down

0 comments on commit c76f673

Please sign in to comment.