[lld] r287457 - Restore a comment that was accidentally changed.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Sat Nov 19 11:26:53 PST 2016


Author: ruiu
Date: Sat Nov 19 13:26:52 2016
New Revision: 287457

URL: http://llvm.org/viewvc/llvm-project?rev=287457&view=rev
Log:
Restore a comment that was accidentally changed.

Modified:
    lld/trunk/ELF/DriverUtils.cpp

Modified: lld/trunk/ELF/DriverUtils.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/DriverUtils.cpp?rev=287457&r1=287456&r2=287457&view=diff
==============================================================================
--- lld/trunk/ELF/DriverUtils.cpp (original)
+++ lld/trunk/ELF/DriverUtils.cpp Sat Nov 19 13:26:52 2016
@@ -145,11 +145,12 @@ Optional<std::string> elf::findFromSearc
   return None;
 }
 
-// Searches a given library from input search paths, which are filled
-// from -L command line switches. Returns a path to an existent library file.
+// This is for -lfoo. We'll look for libfoo.so or libfoo.a from
+// search paths.
 Optional<std::string> elf::searchLibrary(StringRef Name) {
   if (Name.startswith(":"))
     return findFromSearchPaths(Name.substr(1));
+
   for (StringRef Dir : Config->SearchPaths) {
     if (!Config->Static)
       if (Optional<std::string> S = findFile(Dir, "lib" + Name + ".so"))




More information about the llvm-commits mailing list