diff options
author | Rui Ueyama <ruiu@google.com> | 2017-03-17 23:29:01 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2017-03-17 23:29:01 +0000 |
commit | cb89ce03c86a13b233300a10b001f1470e6fe4f5 (patch) | |
tree | 0ba26319c3c73285b9acf2ddce6de52800875948 /lld/ELF/MarkLive.cpp | |
parent | 97c5e91ff047239268047e90178e980c14b52772 (diff) |
Compute Config member function return values only once.
We had a few Config member functions that returns configuration values.
For example, we had is64() which returns true if the target is 64-bit.
The return values of these functions are constant and never change.
This patch is to compute them only once to make it clear that they'll
never change.
Diffstat (limited to 'lld/ELF/MarkLive.cpp')
-rw-r--r-- | lld/ELF/MarkLive.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/MarkLive.cpp b/lld/ELF/MarkLive.cpp index adee7516913..ccaf168beff 100644 --- a/lld/ELF/MarkLive.cpp +++ b/lld/ELF/MarkLive.cpp @@ -55,7 +55,7 @@ template <class ELFT> static typename ELFT::uint getAddend(InputSectionBase &Sec, const typename ELFT::Rel &Rel) { return Target->getImplicitAddend(Sec.Data.begin() + Rel.r_offset, - Rel.getType(Config->isMips64EL())); + Rel.getType(Config->IsMips64EL)); } template <class ELFT> |