Elide adding regions to profile when empty

pull/4070/head
Jimmy Brisson 2017-03-29 15:49:16 -05:00
parent cd7abc019f
commit 8b3f08ed49
1 changed files with 2 additions and 0 deletions

View File

@ -283,6 +283,8 @@ def add_regions_to_profile(profile, config, toolchain_class):
config - the configuration object that owns the region
toolchain_class - the class of the toolchain being used
"""
if not profile:
return
regions = list(config.regions)
for region in regions:
for define in [(region.name.upper() + "_ADDR", region.start),