diff options
author | Chris Lattner <sabre@nondot.org> | 2009-09-16 00:14:19 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-09-16 00:14:19 +0000 |
commit | 4e465598f05972a20daf5ffc8e8a7af0212cb605 (patch) | |
tree | 65a0dee2274fa69c76de5a75dcdd1e520816841d /llvm/lib/Target/PowerPC/PPCMCAsmInfo.cpp | |
parent | dd5a9890344d52e0b93af4bbc4c0002d9dfc70d4 (diff) | |
download | bcm5719-llvm-4e465598f05972a20daf5ffc8e8a7af0212cb605.tar.gz bcm5719-llvm-4e465598f05972a20daf5ffc8e8a7af0212cb605.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).
llvm-svn: 81965
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCMCAsmInfo.cpp')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCMCAsmInfo.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCMCAsmInfo.cpp b/llvm/lib/Target/PowerPC/PPCMCAsmInfo.cpp index c87879b2a33..6aad786f1d3 100644 --- a/llvm/lib/Target/PowerPC/PPCMCAsmInfo.cpp +++ b/llvm/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) { |