eliminate the PPC backend's implementation of EmitExternalGlobal
commit8c7099069742b1fda9b8c3c7d513e67e566c6dbb
authorChris Lattner <sabre@nondot.org>
Wed, 16 Sep 2009 00:14:19 +0000 (16 00:14 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 16 Sep 2009 00:14:19 +0000 (16 00:14 +0000)
treed1965c621bc745366d46a703845b7d6c3dc33b21
parent5632fabd0a6e1f30e9cbbd6c2b6d3dce6dcc656a
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
lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp
lib/Target/PowerPC/PPCMCAsmInfo.cpp