Skip to content
This repository has been archived by the owner on Sep 25, 2023. It is now read-only.

Commit

Permalink
Revert Sequence For BuildTime and Size Improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
Naville committed Jan 30, 2018
1 parent 6230383 commit cd52513
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion lib/Transforms/Obfuscation/Obfuscation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,15 @@ struct Obfuscation : public ModulePass {
P->runOnModule(M);
delete P;
}
/*
// Placing FW here does provide the most obfuscation however the compile time
// and product size would be literally unbearable for any large project
// Move it to post run
if (EnableAllObfuscation || EnableFunctionWrapper) {
ModulePass *P = createFunctionWrapperPass();
P->runOnModule(M);
delete P;
}
}*/
// Now perform Function-Level Obfuscation
for (Module::iterator iter = M.begin(); iter != M.end(); iter++) {
Function &F = *iter;
Expand Down Expand Up @@ -154,6 +158,11 @@ struct Obfuscation : public ModulePass {
}
delete P;
}
if (EnableAllObfuscation || EnableFunctionWrapper) {
ModulePass *P = createFunctionWrapperPass();
P->runOnModule(M);
delete P;
}
return true;
} // End runOnModule
};
Expand Down

0 comments on commit cd52513

Please sign in to comment.