Skip to content

Commit

Permalink
RandomControlFlow: Fix compile issue introduced by f6862fa
Browse files Browse the repository at this point in the history
Signed-off-by: GarfieldHan <[email protected]>
  • Loading branch information
Qfrost911 authored and pomelohan committed Oct 16, 2022
1 parent d530d5a commit 1f0df12
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 4 additions & 0 deletions llvm/include/llvm/Transforms/Obfuscation/Utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

#include "llvm/Support/CommandLine.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/Instruction.h"

#define INIT_CONTEXT(X) CONTEXT=&X.getContext()
#define TYPE_I64 Type::getInt64Ty(*CONTEXT)
Expand Down Expand Up @@ -34,6 +35,9 @@ namespace llvm{
void fixStack(Function &F);
BasicBlock* createCloneBasicBlock(BasicBlock *BB);
std::string readAnnotation(Function *f);

// Check whether the instruction is a CXX Exceptions Instruction
bool is_exceptional_instruction(llvm::Instruction &I);
}

#endif // LLVM_UTILS_H
6 changes: 0 additions & 6 deletions llvm/include/llvm/Transforms/Utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,6 @@ FunctionPass *createAssumeSimplifyPass();
// don't block SCEV.
//
Pass *createCanonicalizeFreezeInLoopsPass();

//===----------------------------------------------------------------------===https://
//
// Check whether the instruction is a CXX Exceptions Instruction
//
bool is_exceptional_instruction(Instruction &I)
} // namespace llvm

#endif

0 comments on commit 1f0df12

Please sign in to comment.