mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-29 10:25:12 +00:00
fixing style nit: move class static to global static
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120619 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -38,9 +38,28 @@ public:
|
|||||||
unsigned getPointerSize() const {
|
unsigned getPointerSize() const {
|
||||||
return 4;
|
return 4;
|
||||||
}
|
}
|
||||||
|
};
|
||||||
|
} // end anonymous namespace
|
||||||
|
|
||||||
protected:
|
bool ARMAsmBackend::MayNeedRelaxation(const MCInst &Inst) const {
|
||||||
static unsigned adjustFixupValue(unsigned Kind, uint64_t Value) {
|
// FIXME: Thumb targets, different move constant targets..
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ARMAsmBackend::RelaxInstruction(const MCInst &Inst, MCInst &Res) const {
|
||||||
|
assert(0 && "ARMAsmBackend::RelaxInstruction() unimplemented");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool ARMAsmBackend::WriteNopData(uint64_t Count, MCObjectWriter *OW) const {
|
||||||
|
// FIXME: Zero fill for now. That's not right, but at least will get the
|
||||||
|
// section size right.
|
||||||
|
for (uint64_t i = 0; i != Count; ++i)
|
||||||
|
OW->Write8(0);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
static unsigned adjustFixupValue(unsigned Kind, uint64_t Value) {
|
||||||
switch (Kind) {
|
switch (Kind) {
|
||||||
default:
|
default:
|
||||||
llvm_unreachable("Unknown fixup kind!");
|
llvm_unreachable("Unknown fixup kind!");
|
||||||
@@ -79,26 +98,6 @@ protected:
|
|||||||
return Value;
|
return Value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
};
|
|
||||||
} // end anonymous namespace
|
|
||||||
|
|
||||||
bool ARMAsmBackend::MayNeedRelaxation(const MCInst &Inst) const {
|
|
||||||
// FIXME: Thumb targets, different move constant targets..
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ARMAsmBackend::RelaxInstruction(const MCInst &Inst, MCInst &Res) const {
|
|
||||||
assert(0 && "ARMAsmBackend::RelaxInstruction() unimplemented");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool ARMAsmBackend::WriteNopData(uint64_t Count, MCObjectWriter *OW) const {
|
|
||||||
// FIXME: Zero fill for now. That's not right, but at least will get the
|
|
||||||
// section size right.
|
|
||||||
for (uint64_t i = 0; i != Count; ++i)
|
|
||||||
OW->Write8(0);
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
Reference in New Issue
Block a user