Merge "Hide CFI behind a global flag."

This commit is contained in:
Vishwath Mohan
2017-01-20 01:32:43 +00:00
committed by Gerrit Code Review
3 changed files with 10 additions and 0 deletions

View File

@@ -161,6 +161,11 @@ func (sanitize *sanitize) begin(ctx BaseModuleContext) {
}
}
if !ctx.AConfig().EnableCFI() {
s.Cfi = nil
s.Diag.Cfi = nil
}
if ctx.staticBinary() {
s.Address = nil
s.Coverage = nil