mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-26 07:24:25 +00:00
Tidy up. 80 columns.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144649 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1579,8 +1579,8 @@ unsigned PPCELFObjectWriter::GetRelocType(const MCValue &Target,
|
|||||||
return Type;
|
return Type;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void PPCELFObjectWriter::
|
||||||
PPCELFObjectWriter::adjustFixupOffset(const MCFixup &Fixup, uint64_t &RelocOffset) {
|
adjustFixupOffset(const MCFixup &Fixup, uint64_t &RelocOffset) {
|
||||||
switch ((unsigned)Fixup.getKind()) {
|
switch ((unsigned)Fixup.getKind()) {
|
||||||
case PPC::fixup_ppc_ha16:
|
case PPC::fixup_ppc_ha16:
|
||||||
case PPC::fixup_ppc_lo16:
|
case PPC::fixup_ppc_lo16:
|
||||||
|
@ -240,12 +240,14 @@ class ELFObjectWriter : public MCObjectWriter {
|
|||||||
F.getContents() += StringRef(buf, 8);
|
F.getContents() += StringRef(buf, 8);
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void WriteHeader(uint64_t SectionDataSize, unsigned NumberOfSections);
|
virtual void WriteHeader(uint64_t SectionDataSize,
|
||||||
|
unsigned NumberOfSections);
|
||||||
|
|
||||||
/// Default e_flags = 0
|
/// Default e_flags = 0
|
||||||
virtual void WriteEFlags() { Write32(0); }
|
virtual void WriteEFlags() { Write32(0); }
|
||||||
|
|
||||||
virtual void WriteSymbolEntry(MCDataFragment *SymtabF, MCDataFragment *ShndxF,
|
virtual void WriteSymbolEntry(MCDataFragment *SymtabF,
|
||||||
|
MCDataFragment *ShndxF,
|
||||||
uint64_t name, uint8_t info,
|
uint64_t name, uint8_t info,
|
||||||
uint64_t value, uint64_t size,
|
uint64_t value, uint64_t size,
|
||||||
uint8_t other, uint32_t shndx,
|
uint8_t other, uint32_t shndx,
|
||||||
@ -256,13 +258,16 @@ class ELFObjectWriter : public MCObjectWriter {
|
|||||||
const MCAsmLayout &Layout);
|
const MCAsmLayout &Layout);
|
||||||
|
|
||||||
typedef DenseMap<const MCSectionELF*, uint32_t> SectionIndexMapTy;
|
typedef DenseMap<const MCSectionELF*, uint32_t> SectionIndexMapTy;
|
||||||
virtual void WriteSymbolTable(MCDataFragment *SymtabF, MCDataFragment *ShndxF,
|
virtual void WriteSymbolTable(MCDataFragment *SymtabF,
|
||||||
|
MCDataFragment *ShndxF,
|
||||||
const MCAssembler &Asm,
|
const MCAssembler &Asm,
|
||||||
const MCAsmLayout &Layout,
|
const MCAsmLayout &Layout,
|
||||||
const SectionIndexMapTy &SectionIndexMap);
|
const SectionIndexMapTy &SectionIndexMap);
|
||||||
|
|
||||||
virtual void RecordRelocation(const MCAssembler &Asm, const MCAsmLayout &Layout,
|
virtual void RecordRelocation(const MCAssembler &Asm,
|
||||||
const MCFragment *Fragment, const MCFixup &Fixup,
|
const MCAsmLayout &Layout,
|
||||||
|
const MCFragment *Fragment,
|
||||||
|
const MCFixup &Fixup,
|
||||||
MCValue Target, uint64_t &FixedValue);
|
MCValue Target, uint64_t &FixedValue);
|
||||||
|
|
||||||
virtual uint64_t getSymbolIndexInSymbolTable(const MCAssembler &Asm,
|
virtual uint64_t getSymbolIndexInSymbolTable(const MCAssembler &Asm,
|
||||||
@ -347,7 +352,8 @@ class ELFObjectWriter : public MCObjectWriter {
|
|||||||
virtual unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
|
virtual unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
|
||||||
bool IsPCRel, bool IsRelocWithSymbol,
|
bool IsPCRel, bool IsRelocWithSymbol,
|
||||||
int64_t Addend) = 0;
|
int64_t Addend) = 0;
|
||||||
virtual void adjustFixupOffset(const MCFixup &Fixup, uint64_t &RelocOffset) { }
|
virtual void adjustFixupOffset(const MCFixup &Fixup,
|
||||||
|
uint64_t &RelocOffset) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
//===- X86ELFObjectWriter -------------------------------------------===//
|
//===- X86ELFObjectWriter -------------------------------------------===//
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
//===- lib/MC/MCModule.cpp - MCModule implementation --------------------------===//
|
//===- lib/MC/MCModule.cpp - MCModule implementation ----------------------===//
|
||||||
//
|
//
|
||||||
// The LLVM Compiler Infrastructure
|
// The LLVM Compiler Infrastructure
|
||||||
//
|
//
|
||||||
|
Reference in New Issue
Block a user