aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/PowerPC/PPCMCAsmInfo.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-09-16 00:14:19 +0000
committerChris Lattner <sabre@nondot.org>2009-09-16 00:14:19 +0000
commit8deedba8412acdd30dc91cc213c706e94253c5b2 (patch)
treed1965c621bc745366d46a703845b7d6c3dc33b21 /lib/Target/PowerPC/PPCMCAsmInfo.cpp
parent334fd1f259b3e8aaf83cf0d40f74af5b209770e6 (diff)
downloadexternal_llvm-8deedba8412acdd30dc91cc213c706e94253c5b2.tar.gz
external_llvm-8deedba8412acdd30dc91cc213c706e94253c5b2.tar.bz2
external_llvm-8deedba8412acdd30dc91cc213c706e94253c5b2.zip
eliminate the PPC backend's implementation of EmitExternalGlobal
and use PersonalityPrefix/Suffix to achieve the same effect (like the x86 backend). This changes the code generated for ppc static mode, but guess what, we were generating this before: .byte 0x9B ; Personality (indirect pcrel sdata4) .long ___gxx_personality_v0-. ; Personality which is not correct! (it is not an 'indirect' reference). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81965 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCMCAsmInfo.cpp')
-rw-r--r--lib/Target/PowerPC/PPCMCAsmInfo.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCMCAsmInfo.cpp b/lib/Target/PowerPC/PPCMCAsmInfo.cpp
index c87879b2a3..6aad786f1d 100644
--- a/lib/Target/PowerPC/PPCMCAsmInfo.cpp
+++ b/lib/Target/PowerPC/PPCMCAsmInfo.cpp
@@ -22,6 +22,9 @@ PPCMCAsmInfoDarwin::PPCMCAsmInfoDarwin(bool is64Bit) {
if (!is64Bit)
Data64bitsDirective = 0; // We can't emit a 64-bit unit in PPC32 mode.
AssemblerDialect = 1; // New-Style mnemonics.
+
+ PersonalityPrefix = "L";
+ PersonalitySuffix = "$non_lazy_ptr";
}
PPCLinuxMCAsmInfo::PPCLinuxMCAsmInfo(bool is64Bit) {