mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
[MC] Default MCAsmInfo::UseIntegratedAssembler to true
This commit is contained in:
parent
89981ade6c
commit
3c474aa8ad
@ -64,7 +64,7 @@ MCAsmInfo::MCAsmInfo() {
|
|||||||
// - Generic_GCC toolchains enable the integrated assembler on a per
|
// - Generic_GCC toolchains enable the integrated assembler on a per
|
||||||
// architecture basis.
|
// architecture basis.
|
||||||
// - The target subclasses for AArch64, ARM, and X86 handle these cases
|
// - The target subclasses for AArch64, ARM, and X86 handle these cases
|
||||||
UseIntegratedAssembler = false;
|
UseIntegratedAssembler = true;
|
||||||
PreserveAsmComments = true;
|
PreserveAsmComments = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -36,8 +36,6 @@ MCAsmInfoCOFF::MCAsmInfoCOFF() {
|
|||||||
SupportsDebugInformation = true;
|
SupportsDebugInformation = true;
|
||||||
NeedsDwarfSectionOffsetDirective = true;
|
NeedsDwarfSectionOffsetDirective = true;
|
||||||
|
|
||||||
UseIntegratedAssembler = true;
|
|
||||||
|
|
||||||
// At least MSVC inline-asm does AShr.
|
// At least MSVC inline-asm does AShr.
|
||||||
UseLogicalShr = false;
|
UseLogicalShr = false;
|
||||||
|
|
||||||
|
@ -91,7 +91,5 @@ MCAsmInfoDarwin::MCAsmInfoDarwin() {
|
|||||||
HasAltEntry = true;
|
HasAltEntry = true;
|
||||||
|
|
||||||
DwarfUsesRelocationsAcrossSections = false;
|
DwarfUsesRelocationsAcrossSections = false;
|
||||||
|
|
||||||
UseIntegratedAssembler = true;
|
|
||||||
SetDirectiveSuppressesReloc = true;
|
SetDirectiveSuppressesReloc = true;
|
||||||
}
|
}
|
||||||
|
@ -96,8 +96,6 @@ AArch64MCAsmInfoELF::AArch64MCAsmInfoELF(const Triple &T) {
|
|||||||
// Exceptions handling
|
// Exceptions handling
|
||||||
ExceptionsType = ExceptionHandling::DwarfCFI;
|
ExceptionsType = ExceptionHandling::DwarfCFI;
|
||||||
|
|
||||||
UseIntegratedAssembler = true;
|
|
||||||
|
|
||||||
HasIdentDirective = true;
|
HasIdentDirective = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -37,8 +37,6 @@ ARMMCAsmInfoDarwin::ARMMCAsmInfoDarwin(const Triple &TheTriple) {
|
|||||||
ExceptionsType = (TheTriple.isOSDarwin() && !TheTriple.isWatchABI())
|
ExceptionsType = (TheTriple.isOSDarwin() && !TheTriple.isWatchABI())
|
||||||
? ExceptionHandling::SjLj
|
? ExceptionHandling::SjLj
|
||||||
: ExceptionHandling::DwarfCFI;
|
: ExceptionHandling::DwarfCFI;
|
||||||
|
|
||||||
UseIntegratedAssembler = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ARMELFMCAsmInfo::anchor() { }
|
void ARMELFMCAsmInfo::anchor() { }
|
||||||
@ -73,8 +71,6 @@ ARMELFMCAsmInfo::ARMELFMCAsmInfo(const Triple &TheTriple) {
|
|||||||
|
|
||||||
// foo(plt) instead of foo@plt
|
// foo(plt) instead of foo@plt
|
||||||
UseParensForSymbolVariant = true;
|
UseParensForSymbolVariant = true;
|
||||||
|
|
||||||
UseIntegratedAssembler = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ARMELFMCAsmInfo::setUseIntegratedAssembler(bool Value) {
|
void ARMELFMCAsmInfo::setUseIntegratedAssembler(bool Value) {
|
||||||
@ -116,7 +112,6 @@ ARMCOFFMCAsmInfoGNU::ARMCOFFMCAsmInfoGNU() {
|
|||||||
ExceptionsType = ExceptionHandling::DwarfCFI;
|
ExceptionsType = ExceptionHandling::DwarfCFI;
|
||||||
UseParensForSymbolVariant = true;
|
UseParensForSymbolVariant = true;
|
||||||
|
|
||||||
UseIntegratedAssembler = true;
|
|
||||||
DwarfRegNumForCFI = false;
|
DwarfRegNumForCFI = false;
|
||||||
|
|
||||||
// Conditional Thumb 4-byte instructions can have an implicit IT.
|
// Conditional Thumb 4-byte instructions can have an implicit IT.
|
||||||
|
@ -23,7 +23,6 @@ AVRMCAsmInfo::AVRMCAsmInfo(const Triple &TT, const MCTargetOptions &Options) {
|
|||||||
PrivateGlobalPrefix = ".L";
|
PrivateGlobalPrefix = ".L";
|
||||||
PrivateLabelPrefix = ".L";
|
PrivateLabelPrefix = ".L";
|
||||||
UsesELFSectionDirectiveForBSS = true;
|
UsesELFSectionDirectiveForBSS = true;
|
||||||
UseIntegratedAssembler = true;
|
|
||||||
SupportsDebugInformation = true;
|
SupportsDebugInformation = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,9 +28,6 @@ LanaiMCAsmInfo::LanaiMCAsmInfo(const Triple & /*TheTriple*/,
|
|||||||
// Lanai assembly requires ".section" before ".bss"
|
// Lanai assembly requires ".section" before ".bss"
|
||||||
UsesELFSectionDirectiveForBSS = true;
|
UsesELFSectionDirectiveForBSS = true;
|
||||||
|
|
||||||
// Use the integrated assembler instead of system one.
|
|
||||||
UseIntegratedAssembler = true;
|
|
||||||
|
|
||||||
// Use '!' as comment string to correspond with old toolchain.
|
// Use '!' as comment string to correspond with old toolchain.
|
||||||
CommentString = "!";
|
CommentString = "!";
|
||||||
|
|
||||||
|
@ -24,5 +24,4 @@ MSP430MCAsmInfo::MSP430MCAsmInfo(const Triple &TT,
|
|||||||
|
|
||||||
AlignmentIsInBytes = false;
|
AlignmentIsInBytes = false;
|
||||||
UsesELFSectionDirectiveForBSS = true;
|
UsesELFSectionDirectiveForBSS = true;
|
||||||
UseIntegratedAssembler = true;
|
|
||||||
}
|
}
|
||||||
|
@ -50,5 +50,4 @@ MipsMCAsmInfo::MipsMCAsmInfo(const Triple &TheTriple,
|
|||||||
ExceptionsType = ExceptionHandling::DwarfCFI;
|
ExceptionsType = ExceptionHandling::DwarfCFI;
|
||||||
DwarfRegNumForCFI = true;
|
DwarfRegNumForCFI = true;
|
||||||
HasMipsExpressions = true;
|
HasMipsExpressions = true;
|
||||||
UseIntegratedAssembler = true;
|
|
||||||
}
|
}
|
||||||
|
@ -51,8 +51,6 @@ PPCELFMCAsmInfo::PPCELFMCAsmInfo(bool is64Bit, const Triple& T) {
|
|||||||
Data64bitsDirective = is64Bit ? "\t.quad\t" : nullptr;
|
Data64bitsDirective = is64Bit ? "\t.quad\t" : nullptr;
|
||||||
AssemblerDialect = 1; // New-Style mnemonics.
|
AssemblerDialect = 1; // New-Style mnemonics.
|
||||||
LCOMMDirectiveAlignmentType = LCOMM::ByteAlignment;
|
LCOMMDirectiveAlignmentType = LCOMM::ByteAlignment;
|
||||||
|
|
||||||
UseIntegratedAssembler = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void PPCXCOFFMCAsmInfo::anchor() {}
|
void PPCXCOFFMCAsmInfo::anchor() {}
|
||||||
|
@ -42,8 +42,6 @@ SparcELFMCAsmInfo::SparcELFMCAsmInfo(const Triple &TheTriple) {
|
|||||||
|
|
||||||
SunStyleELFSectionSwitchSyntax = true;
|
SunStyleELFSectionSwitchSyntax = true;
|
||||||
UsesELFSectionDirectiveForBSS = true;
|
UsesELFSectionDirectiveForBSS = true;
|
||||||
|
|
||||||
UseIntegratedAssembler = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const MCExpr*
|
const MCExpr*
|
||||||
|
@ -23,6 +23,4 @@ SystemZMCAsmInfo::SystemZMCAsmInfo(const Triple &TT) {
|
|||||||
UsesELFSectionDirectiveForBSS = true;
|
UsesELFSectionDirectiveForBSS = true;
|
||||||
SupportsDebugInformation = true;
|
SupportsDebugInformation = true;
|
||||||
ExceptionsType = ExceptionHandling::DwarfCFI;
|
ExceptionsType = ExceptionHandling::DwarfCFI;
|
||||||
|
|
||||||
UseIntegratedAssembler = true;
|
|
||||||
}
|
}
|
||||||
|
@ -71,8 +71,6 @@ X86MCAsmInfoDarwin::X86MCAsmInfoDarwin(const Triple &T) {
|
|||||||
// (actually, must, since otherwise the non-extern relocations we produce
|
// (actually, must, since otherwise the non-extern relocations we produce
|
||||||
// overwhelm ld64's tiny little mind and it fails).
|
// overwhelm ld64's tiny little mind and it fails).
|
||||||
DwarfFDESymbolsUseAbsDiff = true;
|
DwarfFDESymbolsUseAbsDiff = true;
|
||||||
|
|
||||||
UseIntegratedAssembler = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
X86_64MCAsmInfoDarwin::X86_64MCAsmInfoDarwin(const Triple &Triple)
|
X86_64MCAsmInfoDarwin::X86_64MCAsmInfoDarwin(const Triple &Triple)
|
||||||
@ -102,10 +100,6 @@ X86ELFMCAsmInfo::X86ELFMCAsmInfo(const Triple &T) {
|
|||||||
|
|
||||||
// Exceptions handling
|
// Exceptions handling
|
||||||
ExceptionsType = ExceptionHandling::DwarfCFI;
|
ExceptionsType = ExceptionHandling::DwarfCFI;
|
||||||
|
|
||||||
// Always enable the integrated assembler by default.
|
|
||||||
// Clang also enabled it when the OS is Solaris but that is redundant here.
|
|
||||||
UseIntegratedAssembler = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const MCExpr *
|
const MCExpr *
|
||||||
@ -141,8 +135,6 @@ X86MCAsmInfoMicrosoft::X86MCAsmInfoMicrosoft(const Triple &Triple) {
|
|||||||
TextAlignFillValue = 0x90;
|
TextAlignFillValue = 0x90;
|
||||||
|
|
||||||
AllowAtInName = true;
|
AllowAtInName = true;
|
||||||
|
|
||||||
UseIntegratedAssembler = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void X86MCAsmInfoMicrosoftMASM::anchor() { }
|
void X86MCAsmInfoMicrosoftMASM::anchor() { }
|
||||||
@ -174,6 +166,4 @@ X86MCAsmInfoGNUCOFF::X86MCAsmInfoGNUCOFF(const Triple &Triple) {
|
|||||||
TextAlignFillValue = 0x90;
|
TextAlignFillValue = 0x90;
|
||||||
|
|
||||||
AllowAtInName = true;
|
AllowAtInName = true;
|
||||||
|
|
||||||
UseIntegratedAssembler = true;
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user