mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-24 12:29:33 +00:00
MC: Tidy up formatting and doc comments. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239117 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
196340cc6c
commit
679607868f
@ -43,7 +43,7 @@ public:
|
|||||||
/// \name Lifetime Management
|
/// \name Lifetime Management
|
||||||
/// @{
|
/// @{
|
||||||
|
|
||||||
virtual void reset() {};
|
virtual void reset(){};
|
||||||
|
|
||||||
/// @}
|
/// @}
|
||||||
|
|
||||||
@ -72,8 +72,7 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
class MachObjectWriter : public MCObjectWriter {
|
class MachObjectWriter : public MCObjectWriter {
|
||||||
/// MachSymbolData - Helper struct for containing some precomputed information
|
/// Helper struct for containing some precomputed information on symbols.
|
||||||
/// on symbols.
|
|
||||||
struct MachSymbolData {
|
struct MachSymbolData {
|
||||||
const MCSymbol *Symbol;
|
const MCSymbol *Symbol;
|
||||||
uint64_t StringIndex;
|
uint64_t StringIndex;
|
||||||
@ -163,12 +162,11 @@ public:
|
|||||||
void WriteHeader(unsigned NumLoadCommands, unsigned LoadCommandsSize,
|
void WriteHeader(unsigned NumLoadCommands, unsigned LoadCommandsSize,
|
||||||
bool SubsectionsViaSymbols);
|
bool SubsectionsViaSymbols);
|
||||||
|
|
||||||
/// WriteSegmentLoadCommand - Write a segment load command.
|
/// Write a segment load command.
|
||||||
///
|
///
|
||||||
/// \param NumSections The number of sections in this segment.
|
/// \param NumSections The number of sections in this segment.
|
||||||
/// \param SectionDataSize The total size of the sections.
|
/// \param SectionDataSize The total size of the sections.
|
||||||
void WriteSegmentLoadCommand(unsigned NumSections,
|
void WriteSegmentLoadCommand(unsigned NumSections, uint64_t VMSize,
|
||||||
uint64_t VMSize,
|
|
||||||
uint64_t SectionDataStartOffset,
|
uint64_t SectionDataStartOffset,
|
||||||
uint64_t SectionDataSize);
|
uint64_t SectionDataSize);
|
||||||
|
|
||||||
@ -180,14 +178,11 @@ public:
|
|||||||
uint32_t StringTableOffset,
|
uint32_t StringTableOffset,
|
||||||
uint32_t StringTableSize);
|
uint32_t StringTableSize);
|
||||||
|
|
||||||
void WriteDysymtabLoadCommand(uint32_t FirstLocalSymbol,
|
void WriteDysymtabLoadCommand(
|
||||||
uint32_t NumLocalSymbols,
|
uint32_t FirstLocalSymbol, uint32_t NumLocalSymbols,
|
||||||
uint32_t FirstExternalSymbol,
|
uint32_t FirstExternalSymbol, uint32_t NumExternalSymbols,
|
||||||
uint32_t NumExternalSymbols,
|
uint32_t FirstUndefinedSymbol, uint32_t NumUndefinedSymbols,
|
||||||
uint32_t FirstUndefinedSymbol,
|
uint32_t IndirectSymbolOffset, uint32_t NumIndirectSymbols);
|
||||||
uint32_t NumUndefinedSymbols,
|
|
||||||
uint32_t IndirectSymbolOffset,
|
|
||||||
uint32_t NumIndirectSymbols);
|
|
||||||
|
|
||||||
void WriteNlist(MachSymbolData &MSD, const MCAsmLayout &Layout);
|
void WriteNlist(MachSymbolData &MSD, const MCAsmLayout &Layout);
|
||||||
|
|
||||||
@ -225,14 +220,11 @@ public:
|
|||||||
const MCAsmLayout &Layout,
|
const MCAsmLayout &Layout,
|
||||||
const MCFragment *Fragment,
|
const MCFragment *Fragment,
|
||||||
const MCFixup &Fixup, MCValue Target,
|
const MCFixup &Fixup, MCValue Target,
|
||||||
unsigned Log2Size,
|
unsigned Log2Size, uint64_t &FixedValue);
|
||||||
uint64_t &FixedValue);
|
|
||||||
|
|
||||||
void RecordTLVPRelocation(const MCAssembler &Asm,
|
void RecordTLVPRelocation(const MCAssembler &Asm, const MCAsmLayout &Layout,
|
||||||
const MCAsmLayout &Layout,
|
const MCFragment *Fragment, const MCFixup &Fixup,
|
||||||
const MCFragment *Fragment,
|
MCValue Target, uint64_t &FixedValue);
|
||||||
const MCFixup &Fixup, MCValue Target,
|
|
||||||
uint64_t &FixedValue);
|
|
||||||
|
|
||||||
void recordRelocation(MCAssembler &Asm, const MCAsmLayout &Layout,
|
void recordRelocation(MCAssembler &Asm, const MCAsmLayout &Layout,
|
||||||
const MCFragment *Fragment, const MCFixup &Fixup,
|
const MCFragment *Fragment, const MCFixup &Fixup,
|
||||||
@ -241,8 +233,7 @@ public:
|
|||||||
|
|
||||||
void BindIndirectSymbols(MCAssembler &Asm);
|
void BindIndirectSymbols(MCAssembler &Asm);
|
||||||
|
|
||||||
/// ComputeSymbolTable - Compute the symbol table data
|
/// Compute the symbol table data.
|
||||||
///
|
|
||||||
void ComputeSymbolTable(MCAssembler &Asm,
|
void ComputeSymbolTable(MCAssembler &Asm,
|
||||||
std::vector<MachSymbolData> &LocalSymbolData,
|
std::vector<MachSymbolData> &LocalSymbolData,
|
||||||
std::vector<MachSymbolData> &ExternalSymbolData,
|
std::vector<MachSymbolData> &ExternalSymbolData,
|
||||||
@ -262,8 +253,7 @@ public:
|
|||||||
void writeObject(MCAssembler &Asm, const MCAsmLayout &Layout) override;
|
void writeObject(MCAssembler &Asm, const MCAsmLayout &Layout) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/// Construct a new Mach-O writer instance.
|
||||||
/// \brief Construct a new Mach-O writer instance.
|
|
||||||
///
|
///
|
||||||
/// This routine takes ownership of the target writer subclass.
|
/// This routine takes ownership of the target writer subclass.
|
||||||
///
|
///
|
||||||
|
Loading…
x
Reference in New Issue
Block a user