Add PrebuiltNameFromSource

Bug: 177892522
Test: m nothing
Change-Id: I45274836d59adbd6b2a2a848705b189398f1e766
This commit is contained in:
Paul Duffin
2021-04-02 10:24:13 +01:00
parent e1d3837645
commit 864116ce3f
4 changed files with 10 additions and 4 deletions

View File

@@ -82,6 +82,12 @@ func RemoveOptionalPrebuiltPrefix(name string) string {
}
func (p *Prebuilt) Name(name string) string {
return PrebuiltNameFromSource(name)
}
// PrebuiltNameFromSource returns the result of prepending the "prebuilt_" prefix to the supplied
// name.
func PrebuiltNameFromSource(name string) string {
return "prebuilt_" + name
}