diff options
author | Rui Ueyama <ruiu@google.com> | 2018-06-13 19:50:10 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2018-06-13 19:50:10 +0000 |
commit | db9074fa1d72997ef13c2ddd5289be9b0aabfdd9 (patch) | |
tree | 28d6aae42f0b02adebd1fbd78b79651cc1f8dae0 /lld | |
parent | 2cab7ee009a5a9e263dbaf46345ce91029e6079b (diff) |
Make a function non-member because it doesn't depend on any class.
Diffstat (limited to 'lld')
-rw-r--r-- | lld/ELF/Arch/Hexagon.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lld/ELF/Arch/Hexagon.cpp b/lld/ELF/Arch/Hexagon.cpp index 817b77b2f76..96b516c40dd 100644 --- a/lld/ELF/Arch/Hexagon.cpp +++ b/lld/ELF/Arch/Hexagon.cpp @@ -26,7 +26,6 @@ namespace { class Hexagon final : public TargetInfo { public: uint32_t calcEFlags() const override; - uint32_t applyMask(uint32_t Mask, uint32_t Data) const; RelExpr getRelExpr(RelType Type, const Symbol &S, const uint8_t *Loc) const override; void relocateOne(uint8_t *Loc, RelType Type, uint64_t Val) const override; @@ -36,7 +35,7 @@ public: // Support V60 only at the moment. uint32_t Hexagon::calcEFlags() const { return 0x60; } -uint32_t Hexagon::applyMask(uint32_t Mask, uint32_t Data) const { +static uint32_t applyMask(uint32_t Mask, uint32_t Data) { uint32_t Result = 0; size_t Off = 0; |