[lld] r336674 - Rename a variable for consistency. NFC.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 10 07:03:39 PDT 2018


Author: ruiu
Date: Tue Jul 10 07:03:39 2018
New Revision: 336674

URL: http://llvm.org/viewvc/llvm-project?rev=336674&view=rev
Log:
Rename a variable for consistency. NFC.

Modified:
    lld/trunk/ELF/SyntheticSections.cpp

Modified: lld/trunk/ELF/SyntheticSections.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/SyntheticSections.cpp?rev=336674&r1=336673&r2=336674&view=diff
==============================================================================
--- lld/trunk/ELF/SyntheticSections.cpp (original)
+++ lld/trunk/ELF/SyntheticSections.cpp Tue Jul 10 07:03:39 2018
@@ -2444,9 +2444,9 @@ void GdbIndexSection::writeTo(uint8_t *B
   Buf += 24;
 
   // Write the CU list.
-  for (GdbIndexChunk &D : Chunks) {
-    for (GdbIndexChunk::CuEntry &Cu : D.CompilationUnits) {
-      write64le(Buf, D.DebugInfoSec->OutSecOff + Cu.CuOffset);
+  for (GdbIndexChunk &Chunk : Chunks) {
+    for (GdbIndexChunk::CuEntry &Cu : Chunk.CompilationUnits) {
+      write64le(Buf, Chunk.DebugInfoSec->OutSecOff + Cu.CuOffset);
       write64le(Buf + 8, Cu.CuLength);
       Buf += 16;
     }




More information about the llvm-commits mailing list