summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/BackendUtil.cpp
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2017-07-28 00:10:10 +0000
committerKostya Serebryany <kcc@google.com>2017-07-28 00:10:10 +0000
commit6145776720ca1870bbcaf8310ee7f585ff8ff7d4 (patch)
tree6510dc6905c823810d7395763af1e40080c88bc0 /clang/lib/CodeGen/BackendUtil.cpp
parent063b6520965ddb74ea3e08875ed1ba858d6774fd (diff)
downloadbcm5719-llvm-6145776720ca1870bbcaf8310ee7f585ff8ff7d4.tar.gz
bcm5719-llvm-6145776720ca1870bbcaf8310ee7f585ff8ff7d4.zip
[sanitizer-coverage] clang flags pumbing for -fsanitize-coverage=pc-table
llvm-svn: 309338
Diffstat (limited to 'clang/lib/CodeGen/BackendUtil.cpp')
-rw-r--r--clang/lib/CodeGen/BackendUtil.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/BackendUtil.cpp b/clang/lib/CodeGen/BackendUtil.cpp
index a782cc7199e..80f43acec32 100644
--- a/clang/lib/CodeGen/BackendUtil.cpp
+++ b/clang/lib/CodeGen/BackendUtil.cpp
@@ -189,6 +189,7 @@ static void addSanitizerCoveragePass(const PassManagerBuilder &Builder,
Opts.TracePCGuard = CGOpts.SanitizeCoverageTracePCGuard;
Opts.NoPrune = CGOpts.SanitizeCoverageNoPrune;
Opts.Inline8bitCounters = CGOpts.SanitizeCoverageInline8bitCounters;
+ Opts.PCTable = CGOpts.SanitizeCoveragePCTable;
PM.add(createSanitizerCoverageModulePass(Opts));
}
OpenPOWER on IntegriCloud