Introduce adjustFixupOffset that adjusts the fixup offset of a relocation.
authorRoman Divacky <rdivacky@freebsd.org>
Thu, 4 Aug 2011 19:08:19 +0000 (19:08 +0000)
committerRoman Divacky <rdivacky@freebsd.org>
Thu, 4 Aug 2011 19:08:19 +0000 (19:08 +0000)
commit2a66cea1b82b82c7bf19e232aed741331377ad30
tree885148ba415132590c98487130e5d86865c623c4
parentad90d3a343ca73c32693e2b05b74462ccd9659cd
Introduce adjustFixupOffset that adjusts the fixup offset of a relocation.
This is meant to be overriden by backends. Implement an override on PowerPC
which adjusts the offset by 2 for ha16/lo16 relocation kinds. This removes
a commented out hack and enables hello world to be compiled on PowerPC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136905 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/ELFObjectWriter.cpp
lib/MC/ELFObjectWriter.h