about summary refs log tree commit diff
path: root/instrumentation/cmplog-instructions-pass.cc
diff options
context:
space:
mode:
authorDavid CARLIER <devnexen@gmail.com>2023-02-13 23:00:15 +0000
committerDavid CARLIER <devnexen@gmail.com>2023-02-13 23:00:15 +0000
commit8bc3fa1df286aac46a0a724f64e2e07010d2497e (patch)
treef28e1eaa8ce45c27b413a22cc6ed54aea339f5ae /instrumentation/cmplog-instructions-pass.cc
parent6030df2f563c8c5bf482217478375a6b7ea3b15a (diff)
downloadafl++-8bc3fa1df286aac46a0a724f64e2e07010d2497e.tar.gz
LLVM cmplog factoring custom Instruction iterator with added restriction
Diffstat (limited to 'instrumentation/cmplog-instructions-pass.cc')
-rw-r--r--instrumentation/cmplog-instructions-pass.cc15
1 files changed, 0 insertions, 15 deletions
diff --git a/instrumentation/cmplog-instructions-pass.cc b/instrumentation/cmplog-instructions-pass.cc
index bca1f927..c6fd7c56 100644
--- a/instrumentation/cmplog-instructions-pass.cc
+++ b/instrumentation/cmplog-instructions-pass.cc
@@ -138,21 +138,6 @@ llvmGetPassPluginInfo() {
 char CmpLogInstructions::ID = 0;
 #endif
 
-template <class Iterator>
-Iterator Unique(Iterator first, Iterator last) {
-
-  while (first != last) {
-
-    Iterator next(first);
-    last = std::remove(++next, last, *first);
-    first = next;
-
-  }
-
-  return last;
-
-}
-
 bool CmpLogInstructions::hookInstrs(Module &M) {
 
   std::vector<Instruction *> icomps;