mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-23 20:29:30 +00:00
MC: Clean up naming in MCObjectFileInfo.h.
Init*() methods to init*(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239121 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
71c4d5dcbf
commit
22a5d492ef
@ -335,9 +335,9 @@ private:
|
|||||||
MCContext *Ctx;
|
MCContext *Ctx;
|
||||||
Triple TT;
|
Triple TT;
|
||||||
|
|
||||||
void InitMachOMCObjectFileInfo(Triple T);
|
void initMachOMCObjectFileInfo(Triple T);
|
||||||
void InitELFMCObjectFileInfo(Triple T);
|
void initELFMCObjectFileInfo(Triple T);
|
||||||
void InitCOFFMCObjectFileInfo(Triple T);
|
void initCOFFMCObjectFileInfo(Triple T);
|
||||||
|
|
||||||
/// Initialize EHFrameSection on demand.
|
/// Initialize EHFrameSection on demand.
|
||||||
void InitEHFrameSection();
|
void InitEHFrameSection();
|
||||||
|
@ -39,7 +39,7 @@ static bool useCompactUnwind(const Triple &T) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MCObjectFileInfo::InitMachOMCObjectFileInfo(Triple T) {
|
void MCObjectFileInfo::initMachOMCObjectFileInfo(Triple T) {
|
||||||
// MachO
|
// MachO
|
||||||
SupportsWeakOmittedEHFrame = false;
|
SupportsWeakOmittedEHFrame = false;
|
||||||
|
|
||||||
@ -241,7 +241,7 @@ void MCObjectFileInfo::InitMachOMCObjectFileInfo(Triple T) {
|
|||||||
TLSExtraDataSection = TLSTLVSection;
|
TLSExtraDataSection = TLSTLVSection;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MCObjectFileInfo::InitELFMCObjectFileInfo(Triple T) {
|
void MCObjectFileInfo::initELFMCObjectFileInfo(Triple T) {
|
||||||
switch (T.getArch()) {
|
switch (T.getArch()) {
|
||||||
case Triple::mips:
|
case Triple::mips:
|
||||||
case Triple::mipsel:
|
case Triple::mipsel:
|
||||||
@ -520,7 +520,7 @@ void MCObjectFileInfo::InitELFMCObjectFileInfo(Triple T) {
|
|||||||
Ctx->getELFSection(".llvm_stackmaps", ELF::SHT_PROGBITS, ELF::SHF_ALLOC);
|
Ctx->getELFSection(".llvm_stackmaps", ELF::SHT_PROGBITS, ELF::SHF_ALLOC);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MCObjectFileInfo::InitCOFFMCObjectFileInfo(Triple T) {
|
void MCObjectFileInfo::initCOFFMCObjectFileInfo(Triple T) {
|
||||||
bool IsWoA = T.getArch() == Triple::arm || T.getArch() == Triple::thumb;
|
bool IsWoA = T.getArch() == Triple::arm || T.getArch() == Triple::thumb;
|
||||||
|
|
||||||
CommDirectiveSupportsAlignment = true;
|
CommDirectiveSupportsAlignment = true;
|
||||||
@ -765,15 +765,15 @@ void MCObjectFileInfo::InitMCObjectFileInfo(StringRef T, Reloc::Model relocm,
|
|||||||
Arch == Triple::UnknownArch) &&
|
Arch == Triple::UnknownArch) &&
|
||||||
TT.isOSBinFormatMachO()) {
|
TT.isOSBinFormatMachO()) {
|
||||||
Env = IsMachO;
|
Env = IsMachO;
|
||||||
InitMachOMCObjectFileInfo(TT);
|
initMachOMCObjectFileInfo(TT);
|
||||||
} else if ((Arch == Triple::x86 || Arch == Triple::x86_64 ||
|
} else if ((Arch == Triple::x86 || Arch == Triple::x86_64 ||
|
||||||
Arch == Triple::arm || Arch == Triple::thumb) &&
|
Arch == Triple::arm || Arch == Triple::thumb) &&
|
||||||
(TT.isOSWindows() && TT.getObjectFormat() == Triple::COFF)) {
|
(TT.isOSWindows() && TT.getObjectFormat() == Triple::COFF)) {
|
||||||
Env = IsCOFF;
|
Env = IsCOFF;
|
||||||
InitCOFFMCObjectFileInfo(TT);
|
initCOFFMCObjectFileInfo(TT);
|
||||||
} else {
|
} else {
|
||||||
Env = IsELF;
|
Env = IsELF;
|
||||||
InitELFMCObjectFileInfo(TT);
|
initELFMCObjectFileInfo(TT);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user