[lld] r250818 - [elf2] - remove redundant check.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 20 04:27:00 PDT 2015


Author: grimar
Date: Tue Oct 20 06:27:00 2015
New Revision: 250818

URL: http://llvm.org/viewvc/llvm-project?rev=250818&view=rev
Log:
[elf2] - remove redundant check.

This one is not needed anymore after r250812

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=250818&r1=250817&r2=250818&view=diff
==============================================================================
--- lld/trunk/ELF/DriverUtils.cpp (original)
+++ lld/trunk/ELF/DriverUtils.cpp Tue Oct 20 06:27:00 2015
@@ -91,8 +91,6 @@ std::string lld::elf2::findFromSearchPat
 // Searches a given library from input search paths, which are filled
 // from -L command line switches. Returns a path to an existent library file.
 std::string lld::elf2::searchLibrary(StringRef Path) {
-  if (Path.empty())
-    error("No library specified for -l");
   std::vector<std::string> Names;
   if (Path[0] == ':') {
     Names.push_back(Path.drop_front());




More information about the llvm-commits mailing list