summaryrefslogtreecommitdiffstats
path: root/lld/ELF/LinkerScript.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2016-02-11 21:38:55 +0000
committerRui Ueyama <ruiu@google.com>2016-02-11 21:38:55 +0000
commitf9de0d6904cde91fb4b9c7701be2f907717f2c07 (patch)
tree7586e268f1929afc848197586735ec0c99f7571c /lld/ELF/LinkerScript.cpp
parent2f43208c9a5564fa9e13fe72082099322fd5e426 (diff)
downloadbcm5719-llvm-f9de0d6904cde91fb4b9c7701be2f907717f2c07.tar.gz
bcm5719-llvm-f9de0d6904cde91fb4b9c7701be2f907717f2c07.zip
ELF: Remove readLinkerScript and define LinkerScript::read instead.
llvm-svn: 260598
Diffstat (limited to 'lld/ELF/LinkerScript.cpp')
-rw-r--r--lld/ELF/LinkerScript.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp
index 536109fa625..4f39acba57a 100644
--- a/lld/ELF/LinkerScript.cpp
+++ b/lld/ELF/LinkerScript.cpp
@@ -370,7 +370,7 @@ static bool isUnderSysroot(StringRef Path) {
}
// Entry point. The other functions or classes are private to this file.
-void elf2::readLinkerScript(BumpPtrAllocator *A, MemoryBufferRef MB) {
+void LinkerScript::read(MemoryBufferRef MB) {
StringRef Path = MB.getBufferIdentifier();
- ScriptParser(A, MB.getBuffer(), isUnderSysroot(Path)).run();
+ ScriptParser(&Alloc, MB.getBuffer(), isUnderSysroot(Path)).run();
}
OpenPOWER on IntegriCloud