mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
Tidy up. 80 columns.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148401 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ec3433852d
commit
bc3af9b618
@ -73,15 +73,15 @@ public:
|
||||
{ "fixup_ppc_ha16", 16, 16, 0 },
|
||||
{ "fixup_ppc_lo14", 16, 14, 0 }
|
||||
};
|
||||
|
||||
|
||||
if (Kind < FirstTargetFixupKind)
|
||||
return MCAsmBackend::getFixupKindInfo(Kind);
|
||||
|
||||
|
||||
assert(unsigned(Kind - FirstTargetFixupKind) < getNumFixupKinds() &&
|
||||
"Invalid kind!");
|
||||
return Infos[Kind - FirstTargetFixupKind];
|
||||
}
|
||||
|
||||
|
||||
bool mayNeedRelaxation(const MCInst &Inst) const {
|
||||
// FIXME.
|
||||
return false;
|
||||
@ -96,20 +96,20 @@ public:
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
void relaxInstruction(const MCInst &Inst, MCInst &Res) const {
|
||||
// FIXME.
|
||||
assert(0 && "relaxInstruction() unimplemented");
|
||||
}
|
||||
|
||||
|
||||
bool 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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
unsigned getPointerSize() const {
|
||||
StringRef Name = TheTarget.getName();
|
||||
if (Name == "ppc64") return 8;
|
||||
@ -125,12 +125,12 @@ namespace {
|
||||
class DarwinPPCAsmBackend : public PPCAsmBackend {
|
||||
public:
|
||||
DarwinPPCAsmBackend(const Target &T) : PPCAsmBackend(T) { }
|
||||
|
||||
|
||||
void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize,
|
||||
uint64_t Value) const {
|
||||
assert(0 && "UNIMP");
|
||||
}
|
||||
|
||||
|
||||
MCObjectWriter *createObjectWriter(raw_ostream &OS) const {
|
||||
bool is64 = getPointerSize() == 8;
|
||||
return createMachObjectWriter(new PPCMachObjectWriter(
|
||||
@ -140,7 +140,7 @@ namespace {
|
||||
object::mach::CSPPC_ALL),
|
||||
OS, /*IsLittleEndian=*/false);
|
||||
}
|
||||
|
||||
|
||||
virtual bool doesSectionRequireSymbols(const MCSection &Section) const {
|
||||
return false;
|
||||
}
|
||||
@ -151,7 +151,7 @@ namespace {
|
||||
public:
|
||||
ELFPPCAsmBackend(const Target &T, uint8_t OSABI) :
|
||||
PPCAsmBackend(T), OSABI(OSABI) { }
|
||||
|
||||
|
||||
void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize,
|
||||
uint64_t Value) const {
|
||||
Value = adjustFixupValue(Fixup.getKind(), Value);
|
||||
@ -165,12 +165,12 @@ namespace {
|
||||
for (unsigned i = 0; i != 4; ++i)
|
||||
Data[Offset + i] |= uint8_t((Value >> ((4 - i - 1)*8)) & 0xff);
|
||||
}
|
||||
|
||||
|
||||
MCObjectWriter *createObjectWriter(raw_ostream &OS) const {
|
||||
bool is64 = getPointerSize() == 8;
|
||||
return createPPCELFObjectWriter(OS, is64, OSABI);
|
||||
}
|
||||
|
||||
|
||||
virtual bool doesSectionRequireSymbols(const MCSection &Section) const {
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user