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

Commit

Permalink
Update FunctionWrapper.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Naville authored Mar 16, 2019
1 parent 2eb7b5c commit d96c4d1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Transforms/Obfuscation/FunctionWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,10 @@ struct FunctionWrapper : public ModulePass {
FunctionType *ft =
FunctionType::get(CS->getType(), ArrayRef<Type *>(types), false);
Function *func =
Function::Create(ft, GlobalValue::LinkageTypes::InternalLinkage,
Function::Create(ft, GlobalValue::LinkageTypes::PrivateLinkage,
"HikariFunctionWrapper", CS->getParent()->getModule());
//Trolling was all fun and shit so old implementation forced this symbol to exist in all objects
//Meh
appendToCompilerUsed(*func->getParent(), {func});
// FIXME: Correctly Steal Function Attributes
//func->addFnAttr(Attribute::AttrKind::OptimizeNone);
Expand Down

0 comments on commit d96c4d1

Please sign in to comment.