================ @@ -12,12 +12,33 @@ //===----------------------------------------------------------------------===// #include "llvm/Transforms/Instrumentation.h" +#include "llvm/IR/DiagnosticInfo.h" #include "llvm/IR/IntrinsicInst.h" #include "llvm/IR/Module.h" #include "llvm/TargetParser/Triple.h" using namespace llvm; +static cl::opt<bool> ClIgnoreRedundantInstrumentation( + "ignore-redundant-instrumentation", + cl::desc("Ignore redundant instrumentation"), cl::Hidden, cl::init(false)); + +/// Check if module has flag attached, if not add the flag. +bool llvm::checkIfAlreadyInstrumented(Module &M, StringRef flag) { ---------------- nikic wrote:
```suggestion bool llvm::checkIfAlreadyInstrumented(Module &M, StringRef Flag) { ``` https://github.com/llvm/llvm-project/pull/99439 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits