[llvm-commits] [llvm] r121272 - /llvm/trunk/lib/Target/ARM/ARMAsmBackend.cpp

Owen Anderson resistor at mac.com
Wed Dec 8 11:31:11 PST 2010


Author: resistor
Date: Wed Dec  8 13:31:11 2010
New Revision: 121272

URL: http://llvm.org/viewvc/llvm-project?rev=121272&view=rev
Log:
Improve comment.

Modified:
    llvm/trunk/lib/Target/ARM/ARMAsmBackend.cpp

Modified: llvm/trunk/lib/Target/ARM/ARMAsmBackend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMAsmBackend.cpp?rev=121272&r1=121271&r2=121272&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMAsmBackend.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMAsmBackend.cpp Wed Dec  8 13:31:11 2010
@@ -155,7 +155,8 @@
     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;





More information about the llvm-commits mailing list