aboutsummaryrefslogtreecommitdiffstats
path: root/cc/coverage.go
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2017-10-23 17:59:01 -0700
committerColin Cross <ccross@android.com>2017-10-24 13:01:03 -0700
commitd11fcda940055074f9ceb932883ea31dfe0c11d9 (patch)
treec9226e0580eaecd68b531532119f72ddc31da565 /cc/coverage.go
parentb6715449737261c64d3408418754185da8624204 (diff)
downloadandroid_build_soong-d11fcda940055074f9ceb932883ea31dfe0c11d9.tar.gz
android_build_soong-d11fcda940055074f9ceb932883ea31dfe0c11d9.tar.bz2
android_build_soong-d11fcda940055074f9ceb932883ea31dfe0c11d9.zip
Convert Visit*Deps from blueprint.Module to android.Module
Also adds checks that the dependencies are android.Modules and are not disabled. Test: m checkbuild Change-Id: I05e945f38915d49cd3c0ab72a86576949bc7eff2
Diffstat (limited to 'cc/coverage.go')
-rw-r--r--cc/coverage.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/cc/coverage.go b/cc/coverage.go
index 0b4188f7..d2eede28 100644
--- a/cc/coverage.go
+++ b/cc/coverage.go
@@ -16,8 +16,6 @@ package cc
import (
"android/soong/android"
-
- "github.com/google/blueprint"
)
type CoverageProperties struct {
@@ -61,7 +59,7 @@ func (cov *coverage) flags(ctx ModuleContext, flags Flags) Flags {
// For static libraries, the only thing that changes our object files
// are included whole static libraries, so check to see if any of
// those have coverage enabled.
- ctx.VisitDirectDeps(func(m blueprint.Module) {
+ ctx.VisitDirectDeps(func(m android.Module) {
if ctx.OtherModuleDependencyTag(m) != wholeStaticDepTag {
return
}
@@ -75,7 +73,7 @@ func (cov *coverage) flags(ctx ModuleContext, flags Flags) Flags {
} else {
// For executables and shared libraries, we need to check all of
// our static dependencies.
- ctx.VisitDirectDeps(func(m blueprint.Module) {
+ ctx.VisitDirectDeps(func(m android.Module) {
cc, ok := m.(*Module)
if !ok || cc.coverage == nil {
return