diff options
author | vanhauser-thc <vh@thc.org> | 2022-03-01 20:01:12 +0100 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2022-03-01 20:01:12 +0100 |
commit | 7e67545b9de14ae6e425d184581bec93ccf84c6a (patch) | |
tree | 543dfd5a2b548529da7fffa6c74b43ecf0e95df3 /instrumentation/compare-transform-pass.so.cc | |
parent | d84a8da1e9b68f03597f17a9c6c53503551fcb51 (diff) | |
download | afl++-7e67545b9de14ae6e425d184581bec93ccf84c6a.tar.gz |
code format
Diffstat (limited to 'instrumentation/compare-transform-pass.so.cc')
-rw-r--r-- | instrumentation/compare-transform-pass.so.cc | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/instrumentation/compare-transform-pass.so.cc b/instrumentation/compare-transform-pass.so.cc index 969a2ef4..c668ba95 100644 --- a/instrumentation/compare-transform-pass.so.cc +++ b/instrumentation/compare-transform-pass.so.cc @@ -63,20 +63,25 @@ class CompareTransform : public ModulePass { } #if LLVM_MAJOR < 11 -#if LLVM_VERSION_MAJOR >= 4 + #if LLVM_VERSION_MAJOR >= 4 StringRef getPassName() const override { -#else + + #else const char *getPassName() const override { -#endif + + #endif return "transforms compare functions"; + } + #endif -//#if LLVM_MAJOR >= 11 /* use new pass manager */ -// PreservedAnalyses run(Module &M, ModuleAnalysisManager &MAM); -//#else + //#if LLVM_MAJOR >= 11 /* use new pass manager + / /*/ + // PreservedAnalyses run(Module &M, ModuleAnalysisManager &MAM); + //#else bool runOnModule(Module &M) override; -//#endif + //#endif private: bool transformCmps(Module &M, const bool processStrcmp, @@ -106,7 +111,7 @@ bool CompareTransform::transformCmps(Module &M, const bool processStrcmp, #if LLVM_VERSION_MAJOR >= 9 FunctionCallee tolowerFn; #else - Function * tolowerFn; + Function *tolowerFn; #endif { |