Fix an issue in some Thumb fixups, where the effective PC address needs to be 4-byte...
authorOwen Anderson <resistor@mac.com>
Thu, 9 Dec 2010 20:27:52 +0000 (20:27 +0000)
committerOwen Anderson <resistor@mac.com>
Thu, 9 Dec 2010 20:27:52 +0000 (20:27 +0000)
commit05018c2f2872a05b1a2fff1a9934621ba1f38084
treed50bd3b2f96ee8493415aaaa65483807f5bd3013
parentb492a7c2134d3886f545f1b5ea55115d71529a10
Fix an issue in some Thumb fixups, where the effective PC address needs to be 4-byte aligned when calculating
the offset.  Add a new fixup flag to represent this, and use it for the one fixups that I have a testcase for needing
this.  It's quite likely that the other Thumb fixups will need this too, and to have their fixup encoding logic
adjusted accordingly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121408 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCCodeEmitter.h
lib/MC/MCAssembler.cpp
lib/Target/ARM/ARMAsmBackend.cpp
lib/Target/ARM/ARMMCCodeEmitter.cpp