aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/ARM/ARMAsmBackend.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2010-12-08 19:31:11 +0000
committerOwen Anderson <resistor@mac.com>2010-12-08 19:31:11 +0000
commitcc78f5c09c451dd84ef5c4abdfcdadd4270a4942 (patch)
tree3390ff0af6878cce90c9c9b21eeb235d5d01c946 /lib/Target/ARM/ARMAsmBackend.cpp
parent022ab3779c4280f41daf8621257c41cb028c6efe (diff)
downloadexternal_llvm-cc78f5c09c451dd84ef5c4abdfcdadd4270a4942.zip
external_llvm-cc78f5c09c451dd84ef5c4abdfcdadd4270a4942.tar.gz
external_llvm-cc78f5c09c451dd84ef5c4abdfcdadd4270a4942.tar.bz2
Improve comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121272 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMAsmBackend.cpp')
-rw-r--r--lib/Target/ARM/ARMAsmBackend.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMAsmBackend.cpp b/lib/Target/ARM/ARMAsmBackend.cpp
index 615ec4e..28d902a 100644
--- a/lib/Target/ARM/ARMAsmBackend.cpp
+++ b/lib/Target/ARM/ARMAsmBackend.cpp
@@ -155,7 +155,8 @@ static unsigned adjustFixupValue(unsigned Kind, uint64_t Value) {
assert ((Value < 256) && "Out of range pc-relative fixup value!");
Value |= isAdd << 23;
- // Same addressing mode as fixup_arm_pcrel_10, but with the bytes reordered.
+ // Same addressing mode as fixup_arm_pcrel_10,
+ // but with 16-bit halfwords swapped.
if (Kind == ARM::fixup_t2_pcrel_10) {
uint64_t swapped = (Value & 0xFFFF0000) >> 16;
swapped |= (Value & 0x0000FFFF) << 16;