[lld] r254052 - Follow-up to r254049; remove function I missed in the revert.

Hans Wennborg via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 24 17:24:16 PST 2015


Author: hans
Date: Tue Nov 24 19:24:15 2015
New Revision: 254052

URL: http://llvm.org/viewvc/llvm-project?rev=254052&view=rev
Log:
Follow-up to r254049; remove function I missed in the revert.

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=254052&r1=254051&r2=254052&view=diff
==============================================================================
--- lld/trunk/ELF/LinkerScript.cpp (original)
+++ lld/trunk/ELF/LinkerScript.cpp Tue Nov 24 19:24:15 2015
@@ -290,15 +290,6 @@ void LinkerScript::readOutputSectionDesc
   }
 }
 
-static bool isUnderSysroot(StringRef Path) {
-  if (Config->Sysroot == "")
-    return false;
-  for (; !Path.empty(); Path = sys::path::parent_path(Path))
-    if (sys::fs::equivalent(Config->Sysroot, Path))
-      return true;
-  return false;
-}
-
 // Entry point. The other functions or classes are private to this file.
 void lld::elf2::readLinkerScript(BumpPtrAllocator *A, MemoryBufferRef MB) {
   LinkerScript(A, MB.getBuffer()).run();




More information about the llvm-commits mailing list