[llvm-commits] [llvm] r78734 - in /llvm/trunk/lib/Target: ARM/ARMTargetAsmInfo.cpp DarwinTargetAsmInfo.cpp PowerPC/PPCTargetAsmInfo.cpp X86/X86TargetAsmInfo.cpp
Chris Lattner
sabre at nondot.org
Tue Aug 11 15:31:42 PDT 2009
Author: lattner
Date: Tue Aug 11 17:31:42 2009
New Revision: 78734
URL: http://llvm.org/viewvc/llvm-project?rev=78734&view=rev
Log:
factorize more darwin TAI stuff. Note that this gives
darwin/arm support for .no_dead_strip
Modified:
llvm/trunk/lib/Target/ARM/ARMTargetAsmInfo.cpp
llvm/trunk/lib/Target/DarwinTargetAsmInfo.cpp
llvm/trunk/lib/Target/PowerPC/PPCTargetAsmInfo.cpp
llvm/trunk/lib/Target/X86/X86TargetAsmInfo.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMTargetAsmInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMTargetAsmInfo.cpp?rev=78734&r1=78733&r2=78734&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMTargetAsmInfo.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMTargetAsmInfo.cpp Tue Aug 11 17:31:42 2009
@@ -42,21 +42,16 @@
ARMDarwinTargetAsmInfo::ARMDarwinTargetAsmInfo() {
AsmTransCBE = arm_asm_table;
- AlignmentIsInBytes = false;
Data64bitsDirective = 0;
CommentString = "@";
COMMDirectiveTakesAlignment = false;
InlineAsmStart = "@ InlineAsm Start";
InlineAsmEnd = "@ InlineAsm End";
-
- HasDotTypeDotSizeDirective = false;
SupportsDebugInformation = true;
// Exceptions handling
ExceptionsType = ExceptionHandling::SjLj;
- GlobalEHDirective = "\t.globl\t";
- SupportsWeakOmittedEHFrame = false;
AbsoluteEHSectionOffsets = false;
}
Modified: llvm/trunk/lib/Target/DarwinTargetAsmInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/DarwinTargetAsmInfo.cpp?rev=78734&r1=78733&r2=78734&view=diff
==============================================================================
--- llvm/trunk/lib/Target/DarwinTargetAsmInfo.cpp (original)
+++ llvm/trunk/lib/Target/DarwinTargetAsmInfo.cpp Tue Aug 11 17:31:42 2009
@@ -26,6 +26,8 @@
AllowQuotesInName = true;
HasSingleParameterDotFile = false;
+ AlignmentIsInBytes = false;
+
// In non-PIC modes, emit a special label before jump tables so that the
// linker can perform more accurate dead code stripping. We do not check the
// relocation model here since it can be overridden later.
@@ -40,11 +42,16 @@
ZeroFillDirective = "\t.zerofill\t"; // Uses .zerofill
SetDirective = "\t.set";
ProtectedDirective = "\t.globl\t";
+ HasDotTypeDotSizeDirective = false;
+ UsedDirective = "\t.no_dead_strip\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
// doesn't hurt anything.
// FIXME: I need to get this from Triple.
Is_EHSymbolPrivate = false;
+ GlobalEHDirective = "\t.globl\t";
+ SupportsWeakOmittedEHFrame = false;
+
}
Modified: llvm/trunk/lib/Target/PowerPC/PPCTargetAsmInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCTargetAsmInfo.cpp?rev=78734&r1=78733&r2=78734&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCTargetAsmInfo.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCTargetAsmInfo.cpp Tue Aug 11 17:31:42 2009
@@ -22,19 +22,13 @@
PPCDarwinTargetAsmInfo::PPCDarwinTargetAsmInfo(const PPCTargetMachine &TM) {
PCSymbol = ".";
CommentString = ";";
- UsedDirective = "\t.no_dead_strip\t";
ExceptionsType = ExceptionHandling::Dwarf;
- GlobalEHDirective = "\t.globl\t";
- SupportsWeakOmittedEHFrame = false;
-
const PPCSubtarget *Subtarget = &TM.getSubtarget<PPCSubtarget>();
bool isPPC64 = Subtarget->isPPC64();
if (!isPPC64)
Data64bitsDirective = 0; // we can't emit a 64-bit unit
- AlignmentIsInBytes = false;
- LCOMMDirective = "\t.lcomm\t";
InlineAsmStart = "# InlineAsm Start";
InlineAsmEnd = "# InlineAsm End";
AssemblerDialect = Subtarget->getAsmFlavor();
Modified: llvm/trunk/lib/Target/X86/X86TargetAsmInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86TargetAsmInfo.cpp?rev=78734&r1=78733&r2=78734&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86TargetAsmInfo.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86TargetAsmInfo.cpp Tue Aug 11 17:31:42 2009
@@ -45,7 +45,6 @@
const X86Subtarget *Subtarget = &TM.getSubtarget<X86Subtarget>();
bool is64Bit = Subtarget->is64Bit();
- AlignmentIsInBytes = false;
TextAlignFillValue = 0x90;
if (!is64Bit)
@@ -53,7 +52,6 @@
// Leopard and above support aligned common symbols.
COMMDirectiveTakesAlignment = (Subtarget->getDarwinVers() >= 9);
- HasDotTypeDotSizeDirective = false;
if (is64Bit) {
PersonalityPrefix = "";
@@ -67,16 +65,12 @@
InlineAsmEnd = "## InlineAsm End";
CommentString = "##";
PCSymbol = ".";
- UsedDirective = "\t.no_dead_strip\t";
- ProtectedDirective = "\t.globl\t";
SupportsDebugInformation = true;
DwarfUsesInlineInfoSection = true;
// Exceptions handling
ExceptionsType = ExceptionHandling::Dwarf;
- GlobalEHDirective = "\t.globl\t";
- SupportsWeakOmittedEHFrame = false;
AbsoluteEHSectionOffsets = false;
}
More information about the llvm-commits
mailing list