diff options
author | Kostya Serebryany <kcc@google.com> | 2016-02-17 21:34:43 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2016-02-17 21:34:43 +0000 |
commit | d4590c7304575702731b00749ae22e1298a98eba (patch) | |
tree | 7bf5023a60a9e44773fef4c7c704b3c89250b328 /clang/lib/CodeGen/BackendUtil.cpp | |
parent | 2af1e3e963d5af7a674f101cfebbddd7e74460ae (diff) | |
download | llvm-d4590c7304575702731b00749ae22e1298a98eba.zip llvm-d4590c7304575702731b00749ae22e1298a98eba.tar.gz llvm-d4590c7304575702731b00749ae22e1298a98eba.tar.bz2 |
[sanitizer-coverage] implement -fsanitize-coverage=trace-pc. This is similar to trace-bb, but has a different API. We already use the equivalent flag in GCC for Linux kernel fuzzing. We may be able to use this flag with AFL too
llvm-svn: 261159
Diffstat (limited to 'clang/lib/CodeGen/BackendUtil.cpp')
-rw-r--r-- | clang/lib/CodeGen/BackendUtil.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/BackendUtil.cpp b/clang/lib/CodeGen/BackendUtil.cpp index 0cb039b..f5afc68 100644 --- a/clang/lib/CodeGen/BackendUtil.cpp +++ b/clang/lib/CodeGen/BackendUtil.cpp @@ -189,6 +189,7 @@ static void addSanitizerCoveragePass(const PassManagerBuilder &Builder, Opts.TraceBB = CGOpts.SanitizeCoverageTraceBB; Opts.TraceCmp = CGOpts.SanitizeCoverageTraceCmp; Opts.Use8bitCounters = CGOpts.SanitizeCoverage8bitCounters; + Opts.TracePC = CGOpts.SanitizeCoverageTracePC; PM.add(createSanitizerCoverageModulePass(Opts)); } |