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; return nullptr;
} }
// The memory region name is empty, thus a suitable region must be // If at least one memory region is defined, all sections must
// searched for in the region map. If the region map is empty, just // belong to some memory region. Otherwise, we don't need to do
// return. Note that this check doesn't happen at the very beginning // anything for memory regions.
// so that uses of undeclared regions can be caught.
if (Opt.MemoryRegions.empty()) if (Opt.MemoryRegions.empty())
return nullptr; return nullptr;