Move comment to the place where it makes more sense.
authorRui Ueyama <ruiu@google.com>
Tue, 24 Oct 2017 20:11:07 +0000 (20:11 +0000)
committerRui Ueyama <ruiu@google.com>
Tue, 24 Oct 2017 20:11:07 +0000 (20:11 +0000)
llvm-svn: 316491

lld/ELF/Arch/X86.cpp

index f7a61afed3a886f45c8a33cf1936f9b22c5d7cad..5301603e897f0fa1903d747fc4482d3ccb1af55c 100644 (file)
@@ -251,11 +251,11 @@ int64_t X86::getImplicitAddend(const uint8_t *Buf, RelType Type) const {
 }
 
 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;