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

Commit

Permalink
Remove the pretty useless SymObf
Browse files Browse the repository at this point in the history
  • Loading branch information
Naville committed Jan 21, 2018
1 parent 3851f3d commit e0af842
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 97 deletions.
1 change: 0 additions & 1 deletion include/llvm/InitializePasses.h
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,6 @@ void initializeSplitBasicBlockPass(PassRegistry &);
void initializeSubstitutionPass(PassRegistry &);
void initializeAntiDebuggingPass(PassRegistry &);
void initializeAntiHookPass(PassRegistry &);
void initializeSymbolObfuscationPass(PassRegistry &);
void initializeIndirectBranchPass(PassRegistry &);
void initializeObfuscationPass(PassRegistry &);
} // end namespace llvm
Expand Down
1 change: 0 additions & 1 deletion include/llvm/LinkAllPasses.h
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,6 @@ namespace {
(void) llvm::createSubstitutionPass();
(void) llvm::createAntiDebuggingPass();
(void) llvm::createAntiHookPass();
(void) llvm::createSymbolObfuscationPass();
(void) llvm::createIndirectBranchPass();
(void) llvm::createObfuscationPass();
}
Expand Down
1 change: 0 additions & 1 deletion include/llvm/Transforms/Obfuscation/Obfuscation.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include "llvm/Transforms/Obfuscation/FunctionCallObfuscate.h"
#include "llvm/Transforms/Obfuscation/Substitution.h"
#include "llvm/Transforms/Obfuscation/BogusControlFlow.h"
#include "llvm/Transforms/Obfuscation/SymbolObfuscation.h"
#include "llvm/Transforms/Obfuscation/Split.h"
#include "llvm/Transforms/Obfuscation/IndirectBranch.h"
#include "llvm/Transforms/Obfuscation/AntiHook.h"
Expand Down
13 changes: 0 additions & 13 deletions include/llvm/Transforms/Obfuscation/SymbolObfuscation.h

This file was deleted.

6 changes: 0 additions & 6 deletions lib/Transforms/IPO/PassManagerBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,6 @@ static cl::opt<bool>
static cl::opt<bool>
EnableGVNSink("enable-gvn-sink", cl::init(false), cl::Hidden,
cl::desc("Enable the GVN sinking pass (default = off)"));
static cl::opt<bool>
EnableSymbolObfuscation("enable-symobf", cl::init(false), cl::NotHidden,
cl::desc("Enable Symbol Obfuscation."));
PassManagerBuilder::PassManagerBuilder() {
OptLevel = 2;
SizeLevel = 0;
Expand Down Expand Up @@ -927,9 +924,6 @@ void PassManagerBuilder::populateLTOPassManager(legacy::PassManagerBase &PM) {

if (VerifyOutput)
PM.add(createVerifierPass());
if (EnableSymbolObfuscation) {
PM.add(createSymbolObfuscationPass());
}
}

inline PassManagerBuilder *unwrap(LLVMPassManagerBuilderRef P) {
Expand Down
1 change: 0 additions & 1 deletion lib/Transforms/Obfuscation/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
add_llvm_library(LLVMObfuscation
SymbolObfuscation.cpp
FunctionCallObfuscate.cpp
CryptoUtils.cpp
BogusControlFlow.cpp
Expand Down
1 change: 1 addition & 0 deletions lib/Transforms/Obfuscation/Obfuscation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ char Obfuscation::ID = 0;
INITIALIZE_PASS_BEGIN(Obfuscation, "obfus", "Enable Obfuscation", true, true)
INITIALIZE_PASS_DEPENDENCY(AntiClassDump);
INITIALIZE_PASS_DEPENDENCY(AntiDebugging);
INITIALIZE_PASS_DEPENDENCY(AntiHook);
INITIALIZE_PASS_DEPENDENCY(BogusControlFlow);
INITIALIZE_PASS_DEPENDENCY(Flattening);
INITIALIZE_PASS_DEPENDENCY(FunctionCallObfuscate);
Expand Down
74 changes: 0 additions & 74 deletions lib/Transforms/Obfuscation/SymbolObfuscation.cpp

This file was deleted.

0 comments on commit e0af842

Please sign in to comment.