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

Commit

Permalink
Register Obfuscation with PM
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhang committed Mar 24, 2018
1 parent 3ef5f3b commit bc72e7c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Transforms/IPO/PassManagerBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
#include "llvm/Transforms/Scalar/GVN.h"
#include "llvm/Transforms/Scalar/SimpleLoopUnswitch.h"
#include "llvm/Transforms/Vectorize.h"

#include "llvm/Transforms/Obfuscation/Obfuscation.h"
using namespace llvm;

static cl::opt<bool>
Expand Down Expand Up @@ -390,6 +390,7 @@ void PassManagerBuilder::addFunctionSimplificationPasses(

void PassManagerBuilder::populateModulePassManager(
legacy::PassManagerBase &MPM) {
MPM.add(createObfuscationPass());
if (!PGOSampleUse.empty()) {
MPM.add(createPruneEHPass());
MPM.add(createSampleProfileLoaderPass(PGOSampleUse));
Expand Down

0 comments on commit bc72e7c

Please sign in to comment.