[lld] r334646 - Make a function non-member because it doesn't depend on any class.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 13 12:50:10 PDT 2018
Author: ruiu
Date: Wed Jun 13 12:50:10 2018
New Revision: 334646
URL: http://llvm.org/viewvc/llvm-project?rev=334646&view=rev
Log:
Make a function non-member because it doesn't depend on any class.
Modified:
lld/trunk/ELF/Arch/Hexagon.cpp
Modified: lld/trunk/ELF/Arch/Hexagon.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Arch/Hexagon.cpp?rev=334646&r1=334645&r2=334646&view=diff
==============================================================================
--- lld/trunk/ELF/Arch/Hexagon.cpp (original)
+++ lld/trunk/ELF/Arch/Hexagon.cpp Wed Jun 13 12:50:10 2018
@@ -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;
More information about the llvm-commits
mailing list