[lld] r299502 - Update comment.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 4 20:19:44 PDT 2017


Author: ruiu
Date: Tue Apr  4 22:19:43 2017
New Revision: 299502

URL: http://llvm.org/viewvc/llvm-project?rev=299502&view=rev
Log:
Update comment.

Modified:
    lld/trunk/ELF/LinkerScript.cpp

Modified: lld/trunk/ELF/LinkerScript.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/LinkerScript.cpp?rev=299502&r1=299501&r2=299502&view=diff
==============================================================================
--- lld/trunk/ELF/LinkerScript.cpp (original)
+++ lld/trunk/ELF/LinkerScript.cpp Tue Apr  4 22:19:43 2017
@@ -617,10 +617,9 @@ MemoryRegion *LinkerScript::findMemoryRe
     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;
 




More information about the llvm-commits mailing list