summaryrefslogtreecommitdiffstats
path: root/lld/ELF/ScriptParser.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2017-10-08 02:06:03 +0000
committerRui Ueyama <ruiu@google.com>2017-10-08 02:06:03 +0000
commit9b18f50f7985f3dc0741c5ac10f4539d430d8b67 (patch)
tree0b7c7def1e5c9901ebfa40ea618c976614deac1b /lld/ELF/ScriptParser.cpp
parente8936bca7229f9f50db2bc18796ed28271d212bb (diff)
downloadbcm5719-llvm-9b18f50f7985f3dc0741c5ac10f4539d430d8b67.tar.gz
bcm5719-llvm-9b18f50f7985f3dc0741c5ac10f4539d430d8b67.zip
Remove a trivial function.
llvm-svn: 315164
Diffstat (limited to 'lld/ELF/ScriptParser.cpp')
-rw-r--r--lld/ELF/ScriptParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/ScriptParser.cpp b/lld/ELF/ScriptParser.cpp
index c1daa9a4df2..a024e5375f3 100644
--- a/lld/ELF/ScriptParser.cpp
+++ b/lld/ELF/ScriptParser.cpp
@@ -1007,7 +1007,7 @@ Expr ScriptParser::readPrimary() {
}
if (Tok == "DEFINED") {
StringRef Name = readParenLiteral();
- return [=] { return Script->isDefined(Name) ? 1 : 0; };
+ return [=] { return Symtab->find(Name) ? 1 : 0; };
}
if (Tok == "LENGTH") {
StringRef Name = readParenLiteral();
OpenPOWER on IntegriCloud