diff options
author | Rui Ueyama <ruiu@google.com> | 2018-02-28 18:25:00 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2018-02-28 18:25:00 +0000 |
commit | 1d20222a481a2affd41e0f2bf00df60c14b9a53e (patch) | |
tree | 9a57a2893278ad574abc22a341053acb453131d2 | |
parent | d34e8761856d6b64e620efeb6963cef9902f6ea5 (diff) | |
download | bcm5719-llvm-1d20222a481a2affd41e0f2bf00df60c14b9a53e.tar.gz bcm5719-llvm-1d20222a481a2affd41e0f2bf00df60c14b9a53e.zip |
Inline a trivial function. NFC.
llvm-svn: 326347
-rw-r--r-- | lld/ELF/ScriptParser.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lld/ELF/ScriptParser.cpp b/lld/ELF/ScriptParser.cpp index 8740f6ad5fc..0c4e523ebc8 100644 --- a/lld/ELF/ScriptParser.cpp +++ b/lld/ELF/ScriptParser.cpp @@ -157,10 +157,6 @@ static ExprValue sub(ExprValue A, ExprValue B) { return {A.Sec, false, A.getSectionOffset() - B.getValue(), A.Loc}; } -static ExprValue mul(ExprValue A, ExprValue B) { - return A.getValue() * B.getValue(); -} - static ExprValue div(ExprValue A, ExprValue B) { if (uint64_t BV = B.getValue()) return A.getValue() / BV; @@ -808,7 +804,7 @@ static Expr combine(StringRef Op, Expr L, Expr R) { if (Op == "-") return [=] { return sub(L(), R()); }; if (Op == "*") - return [=] { return mul(L(), R()); }; + return [=] { return L().getValue() * R().getValue(); }; if (Op == "/") return [=] { return div(L(), R()); }; if (Op == "<<") |