aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/compiler/const_file.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/compiler/const_file.go')
-rw-r--r--pkg/compiler/const_file.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/compiler/const_file.go b/pkg/compiler/const_file.go
index 0df0bb0ca..1968092a4 100644
--- a/pkg/compiler/const_file.go
+++ b/pkg/compiler/const_file.go
@@ -82,6 +82,10 @@ func (cf *ConstFile) Arch(arch string) map[string]uint64 {
return m
}
+func (cf *ConstFile) ExistsAny(constName string) bool {
+ return len(cf.m[constName].vals) > 0
+}
+
func (cf *ConstFile) Serialize() []byte {
if len(cf.arches) == 0 {
return nil