Update comment.

llvm-svn: 299502
This commit is contained in:
Rui Ueyama 2017-04-05 03:19:43 +00:00
parent cc400cc8ac
commit d7c5400f9e
1 changed files with 3 additions and 4 deletions

View File

@ -617,10 +617,9 @@ MemoryRegion *LinkerScript::findMemoryRegion(OutputSectionCommand *Cmd,
return nullptr;
}
// The memory region name is empty, thus a suitable region must be
// searched for in the region map. If the region map is empty, just
// return. Note that this check doesn't happen at the very beginning
// so that uses of undeclared regions can be caught.
// If at least one memory region is defined, all sections must
// belong to some memory region. Otherwise, we don't need to do
// anything for memory regions.
if (Opt.MemoryRegions.empty())
return nullptr;