[lld] r316491 - Move comment to the place where it makes more sense.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 24 13:11:07 PDT 2017


Author: ruiu
Date: Tue Oct 24 13:11:07 2017
New Revision: 316491

URL: http://llvm.org/viewvc/llvm-project?rev=316491&view=rev
Log:
Move comment to the place where it makes more sense.

Modified:
    lld/trunk/ELF/Arch/X86.cpp

Modified: lld/trunk/ELF/Arch/X86.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Arch/X86.cpp?rev=316491&r1=316490&r2=316491&view=diff
==============================================================================
--- lld/trunk/ELF/Arch/X86.cpp (original)
+++ lld/trunk/ELF/Arch/X86.cpp Tue Oct 24 13:11:07 2017
@@ -251,11 +251,11 @@ int64_t X86::getImplicitAddend(const uin
 }
 
 void X86::relocateOne(uint8_t *Loc, RelType Type, uint64_t Val) const {
-  // R_386_{PC,}{8,16} are not part of the i386 psABI, but they are
-  // being used for some 16-bit programs such as boot loaders, so
-  // we want to support them.
   switch (Type) {
   case R_386_8:
+    // R_386_{PC,}{8,16} are not part of the i386 psABI, but they are
+    // being used for some 16-bit programs such as boot loaders, so
+    // we want to support them.
     checkUInt<8>(Loc, Val, Type);
     *Loc = Val;
     break;




More information about the llvm-commits mailing list