diff options
author | Chris Lattner <sabre@nondot.org> | 2009-08-11 22:22:44 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-08-11 22:22:44 +0000 |
commit | e2811a74803d24fff45a186d2871377d248cec1c (patch) | |
tree | 9d0ec5c6f3ee6ba2e1b6dbe09d1e49da16c38b69 | |
parent | 7417b761c2d88335bd77d38911ff8d323fc4a4f2 (diff) |
factorize darwin ProtectedDirective and SetDirective.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78732 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/ARM/ARMTargetAsmInfo.cpp | 2 | ||||
-rw-r--r-- | lib/Target/DarwinTargetAsmInfo.cpp | 2 | ||||
-rw-r--r-- | lib/Target/PowerPC/PPCTargetAsmInfo.cpp | 4 | ||||
-rw-r--r-- | lib/Target/X86/X86TargetAsmInfo.cpp | 1 |
4 files changed, 4 insertions, 5 deletions
diff --git a/lib/Target/ARM/ARMTargetAsmInfo.cpp b/lib/Target/ARM/ARMTargetAsmInfo.cpp index 4d9e165a98..c9c81dcd2a 100644 --- a/lib/Target/ARM/ARMTargetAsmInfo.cpp +++ b/lib/Target/ARM/ARMTargetAsmInfo.cpp @@ -50,8 +50,6 @@ ARMDarwinTargetAsmInfo::ARMDarwinTargetAsmInfo() { InlineAsmEnd = "@ InlineAsm End"; - SetDirective = "\t.set\t"; - ProtectedDirective = NULL; HasDotTypeDotSizeDirective = false; SupportsDebugInformation = true; diff --git a/lib/Target/DarwinTargetAsmInfo.cpp b/lib/Target/DarwinTargetAsmInfo.cpp index 533085a107..7221624633 100644 --- a/lib/Target/DarwinTargetAsmInfo.cpp +++ b/lib/Target/DarwinTargetAsmInfo.cpp @@ -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 diff --git a/lib/Target/PowerPC/PPCTargetAsmInfo.cpp b/lib/Target/PowerPC/PPCTargetAsmInfo.cpp index e20fd4ebd3..4f69f7ed3f 100644 --- a/lib/Target/PowerPC/PPCTargetAsmInfo.cpp +++ b/lib/Target/PowerPC/PPCTargetAsmInfo.cpp @@ -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"; diff --git a/lib/Target/X86/X86TargetAsmInfo.cpp b/lib/Target/X86/X86TargetAsmInfo.cpp index e7f84be060..53533ace96 100644 --- a/lib/Target/X86/X86TargetAsmInfo.cpp +++ b/lib/Target/X86/X86TargetAsmInfo.cpp @@ -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"; |