forked from OSchip/llvm-project
clang-format bits of code to make a followup patch easy to read.
llvm-svn: 234519
This commit is contained in:
parent
1c84271694
commit
49286e9f4a
|
@ -249,8 +249,8 @@ unsigned AArch64ELFObjectWriter::GetRelocType(const MCValue &Target,
|
|||
}
|
||||
|
||||
MCObjectWriter *llvm::createAArch64ELFObjectWriter(raw_ostream &OS,
|
||||
uint8_t OSABI,
|
||||
bool IsLittleEndian) {
|
||||
uint8_t OSABI,
|
||||
bool IsLittleEndian) {
|
||||
MCELFObjectTargetWriter *MOTW =
|
||||
new AArch64ELFObjectWriter(OSABI, IsLittleEndian);
|
||||
return createELFObjectWriter(MOTW, OS, IsLittleEndian);
|
||||
|
|
|
@ -90,7 +90,7 @@ public:
|
|||
friend class AArch64TargetELFStreamer;
|
||||
|
||||
AArch64ELFStreamer(MCContext &Context, MCAsmBackend &TAB, raw_ostream &OS,
|
||||
MCCodeEmitter *Emitter)
|
||||
MCCodeEmitter *Emitter)
|
||||
: MCELFStreamer(Context, TAB, OS, Emitter), MappingSymbolCounter(0),
|
||||
LastEMS(EMS_None) {}
|
||||
|
||||
|
|
|
@ -52,7 +52,7 @@ MCObjectWriter *createAArch64ELFObjectWriter(raw_ostream &OS, uint8_t OSABI,
|
|||
bool IsLittleEndian);
|
||||
|
||||
MCObjectWriter *createAArch64MachObjectWriter(raw_ostream &OS, uint32_t CPUType,
|
||||
uint32_t CPUSubtype);
|
||||
uint32_t CPUSubtype);
|
||||
|
||||
MCTargetStreamer *createAArch64AsmTargetStreamer(MCStreamer &S,
|
||||
formatted_raw_ostream &OS,
|
||||
|
|
|
@ -414,8 +414,8 @@ void AArch64MachObjectWriter::RecordRelocation(
|
|||
}
|
||||
|
||||
MCObjectWriter *llvm::createAArch64MachObjectWriter(raw_ostream &OS,
|
||||
uint32_t CPUType,
|
||||
uint32_t CPUSubtype) {
|
||||
uint32_t CPUType,
|
||||
uint32_t CPUSubtype) {
|
||||
return createMachObjectWriter(
|
||||
new AArch64MachObjectWriter(CPUType, CPUSubtype), OS,
|
||||
/*IsLittleEndian=*/true);
|
||||
|
|
|
@ -86,13 +86,11 @@ MCStreamer *createARMWinCOFFStreamer(MCContext &Context, MCAsmBackend &MAB,
|
|||
bool RelaxAll);
|
||||
|
||||
/// Construct an ELF Mach-O object writer.
|
||||
MCObjectWriter *createARMELFObjectWriter(raw_ostream &OS,
|
||||
uint8_t OSABI,
|
||||
MCObjectWriter *createARMELFObjectWriter(raw_ostream &OS, uint8_t OSABI,
|
||||
bool IsLittleEndian);
|
||||
|
||||
/// Construct an ARM Mach-O object writer.
|
||||
MCObjectWriter *createARMMachObjectWriter(raw_ostream &OS,
|
||||
bool Is64Bit,
|
||||
MCObjectWriter *createARMMachObjectWriter(raw_ostream &OS, bool Is64Bit,
|
||||
uint32_t CPUType,
|
||||
uint32_t CPUSubtype);
|
||||
|
||||
|
|
|
@ -472,8 +472,7 @@ void ARMMachObjectWriter::RecordRelocation(MachObjectWriter *Writer,
|
|||
Writer->addRelocation(RelSymbol, Fragment->getParent(), MRE);
|
||||
}
|
||||
|
||||
MCObjectWriter *llvm::createARMMachObjectWriter(raw_ostream &OS,
|
||||
bool Is64Bit,
|
||||
MCObjectWriter *llvm::createARMMachObjectWriter(raw_ostream &OS, bool Is64Bit,
|
||||
uint32_t CPUType,
|
||||
uint32_t CPUSubtype) {
|
||||
return createMachObjectWriter(new ARMMachObjectWriter(Is64Bit,
|
||||
|
|
|
@ -412,8 +412,7 @@ bool PPCELFObjectWriter::needsRelocateWithSymbol(const MCSymbolData &SD,
|
|||
}
|
||||
}
|
||||
|
||||
MCObjectWriter *llvm::createPPCELFObjectWriter(raw_ostream &OS,
|
||||
bool Is64Bit,
|
||||
MCObjectWriter *llvm::createPPCELFObjectWriter(raw_ostream &OS, bool Is64Bit,
|
||||
bool IsLittleEndian,
|
||||
uint8_t OSABI) {
|
||||
MCELFObjectTargetWriter *MOTW = new PPCELFObjectWriter(Is64Bit, OSABI);
|
||||
|
|
|
@ -104,8 +104,7 @@ unsigned SparcELFObjectWriter::GetRelocType(const MCValue &Target,
|
|||
return ELF::R_SPARC_NONE;
|
||||
}
|
||||
|
||||
MCObjectWriter *llvm::createSparcELFObjectWriter(raw_ostream &OS,
|
||||
bool Is64Bit,
|
||||
MCObjectWriter *llvm::createSparcELFObjectWriter(raw_ostream &OS, bool Is64Bit,
|
||||
uint8_t OSABI) {
|
||||
MCELFObjectTargetWriter *MOTW = new SparcELFObjectWriter(Is64Bit, OSABI);
|
||||
return createELFObjectWriter(MOTW, OS, /*IsLittleEndian=*/false);
|
||||
|
|
|
@ -248,8 +248,7 @@ unsigned X86ELFObjectWriter::GetRelocType(const MCValue &Target,
|
|||
return getRelocType32(Modifier, getType32(Type), IsPCRel);
|
||||
}
|
||||
|
||||
MCObjectWriter *llvm::createX86ELFObjectWriter(raw_ostream &OS,
|
||||
bool IsELF64,
|
||||
MCObjectWriter *llvm::createX86ELFObjectWriter(raw_ostream &OS, bool IsELF64,
|
||||
uint8_t OSABI,
|
||||
uint16_t EMachine) {
|
||||
MCELFObjectTargetWriter *MOTW =
|
||||
|
|
|
@ -81,16 +81,13 @@ MCStreamer *createX86WinCOFFStreamer(MCContext &C, MCAsmBackend &AB,
|
|||
bool RelaxAll);
|
||||
|
||||
/// Construct an X86 Mach-O object writer.
|
||||
MCObjectWriter *createX86MachObjectWriter(raw_ostream &OS,
|
||||
bool Is64Bit,
|
||||
MCObjectWriter *createX86MachObjectWriter(raw_ostream &OS, bool Is64Bit,
|
||||
uint32_t CPUType,
|
||||
uint32_t CPUSubtype);
|
||||
|
||||
/// Construct an X86 ELF object writer.
|
||||
MCObjectWriter *createX86ELFObjectWriter(raw_ostream &OS,
|
||||
bool IsELF64,
|
||||
uint8_t OSABI,
|
||||
uint16_t EMachine);
|
||||
MCObjectWriter *createX86ELFObjectWriter(raw_ostream &OS, bool IsELF64,
|
||||
uint8_t OSABI, uint16_t EMachine);
|
||||
/// Construct an X86 Win COFF object writer.
|
||||
MCObjectWriter *createX86WinCOFFObjectWriter(raw_ostream &OS, bool Is64Bit);
|
||||
|
||||
|
|
|
@ -575,8 +575,7 @@ void X86MachObjectWriter::RecordX86Relocation(MachObjectWriter *Writer,
|
|||
Writer->addRelocation(RelSymbol, Fragment->getParent(), MRE);
|
||||
}
|
||||
|
||||
MCObjectWriter *llvm::createX86MachObjectWriter(raw_ostream &OS,
|
||||
bool Is64Bit,
|
||||
MCObjectWriter *llvm::createX86MachObjectWriter(raw_ostream &OS, bool Is64Bit,
|
||||
uint32_t CPUType,
|
||||
uint32_t CPUSubtype) {
|
||||
return createMachObjectWriter(new X86MachObjectWriter(Is64Bit,
|
||||
|
|
Loading…
Reference in New Issue