forked from OSchip/llvm-project
factorize darwin ProtectedDirective and SetDirective.
llvm-svn: 78732
This commit is contained in:
parent
c4f8ea4ccb
commit
6747b39ca5
|
@ -50,8 +50,6 @@ ARMDarwinTargetAsmInfo::ARMDarwinTargetAsmInfo() {
|
|||
InlineAsmEnd = "@ InlineAsm End";
|
||||
|
||||
|
||||
SetDirective = "\t.set\t";
|
||||
ProtectedDirective = NULL;
|
||||
HasDotTypeDotSizeDirective = false;
|
||||
SupportsDebugInformation = true;
|
||||
|
||||
|
|
|
@ -38,6 +38,8 @@ DarwinTargetAsmInfo::DarwinTargetAsmInfo() {
|
|||
LCOMMDirective = "\t.lcomm\t";
|
||||
ZeroDirective = "\t.space\t"; // ".space N" emits N zeros.
|
||||
ZeroFillDirective = "\t.zerofill\t"; // Uses .zerofill
|
||||
SetDirective = "\t.set";
|
||||
ProtectedDirective = "\t.globl\t";
|
||||
|
||||
// _foo.eh symbols are currently always exported so that the linker knows
|
||||
// about them. This is not necessary on 10.6 and later, but it
|
||||
|
|
|
@ -31,8 +31,8 @@ PPCDarwinTargetAsmInfo::PPCDarwinTargetAsmInfo(const PPCTargetMachine &TM) {
|
|||
const PPCSubtarget *Subtarget = &TM.getSubtarget<PPCSubtarget>();
|
||||
bool isPPC64 = Subtarget->isPPC64();
|
||||
|
||||
SetDirective = "\t.set";
|
||||
Data64bitsDirective = isPPC64 ? "\t.quad\t" : 0;
|
||||
if (!isPPC64)
|
||||
Data64bitsDirective = 0; // we can't emit a 64-bit unit
|
||||
AlignmentIsInBytes = false;
|
||||
LCOMMDirective = "\t.lcomm\t";
|
||||
InlineAsmStart = "# InlineAsm Start";
|
||||
|
|
|
@ -66,7 +66,6 @@ X86DarwinTargetAsmInfo::X86DarwinTargetAsmInfo(const X86TargetMachine &TM) {
|
|||
InlineAsmStart = "## InlineAsm Start";
|
||||
InlineAsmEnd = "## InlineAsm End";
|
||||
CommentString = "##";
|
||||
SetDirective = "\t.set";
|
||||
PCSymbol = ".";
|
||||
UsedDirective = "\t.no_dead_strip\t";
|
||||
ProtectedDirective = "\t.globl\t";
|
||||
|
|
Loading…
Reference in New Issue