summaryrefslogtreecommitdiffstats
path: root/lld/ELF/LinkerScript.cpp
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2015-11-25 01:24:15 +0000
committerHans Wennborg <hans@hanshq.net>2015-11-25 01:24:15 +0000
commit17436ce174fd5712205718edfcabd7ef10de0802 (patch)
tree5a6f9a62067b0baf6accdf81f94d4b349eec8aa8 /lld/ELF/LinkerScript.cpp
parent9f68d876a0e87b96e7ce948ac05b85b8509341f7 (diff)
downloadbcm5719-llvm-17436ce174fd5712205718edfcabd7ef10de0802.tar.gz
bcm5719-llvm-17436ce174fd5712205718edfcabd7ef10de0802.zip
Follow-up to r254049; remove function I missed in the revert.
llvm-svn: 254052
Diffstat (limited to 'lld/ELF/LinkerScript.cpp')
-rw-r--r--lld/ELF/LinkerScript.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp
index d222bb9ef0c..03c5fc4fca7 100644
--- a/lld/ELF/LinkerScript.cpp
+++ b/lld/ELF/LinkerScript.cpp
@@ -290,15 +290,6 @@ void LinkerScript::readOutputSectionDescription() {
}
}
-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();
OpenPOWER on IntegriCloud