[lld] r239290 - COFF: Use the empty string as the current directory instead of ".".

Rui Ueyama ruiu at google.com
Sun Jun 7 23:13:13 PDT 2015


Author: ruiu
Date: Mon Jun  8 01:13:12 2015
New Revision: 239290

URL: http://llvm.org/viewvc/llvm-project?rev=239290&view=rev
Log:
COFF: Use the empty string as the current directory instead of ".".

This is NFC but makes log message a bit nicer because it doesn't
append .\ (or ./ on Unix) to files in the current directory.

Modified:
    lld/trunk/COFF/Driver.cpp

Modified: lld/trunk/COFF/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/Driver.cpp?rev=239290&r1=239289&r2=239290&view=diff
==============================================================================
--- lld/trunk/COFF/Driver.cpp (original)
+++ lld/trunk/COFF/Driver.cpp Mon Jun  8 01:13:12 2015
@@ -162,7 +162,8 @@ Optional<StringRef> LinkerDriver::findLi
 // Parses LIB environment which contains a list of search paths.
 std::vector<StringRef> LinkerDriver::getSearchPaths() {
   std::vector<StringRef> Ret;
-  Ret.push_back(".");
+  // Add current directory as first item of the search paths.
+  Ret.push_back("");
   Optional<std::string> EnvOpt = Process::GetEnv("LIB");
   if (!EnvOpt.hasValue())
     return Ret;





More information about the llvm-commits mailing list