[llvm] r182903 - Rename variable to be more descriptive.
Eric Christopher
echristo at gmail.com
Wed May 29 17:43:35 PDT 2013
Author: echristo
Date: Wed May 29 19:43:35 2013
New Revision: 182903
URL: http://llvm.org/viewvc/llvm-project?rev=182903&view=rev
Log:
Rename variable to be more descriptive.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=182903&r1=182902&r2=182903&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Wed May 29 19:43:35 2013
@@ -1794,10 +1794,10 @@ DwarfUnits::computeSizeAndOffset(DIE *Di
// Compute the size and offset of all the DIEs.
void DwarfUnits::computeSizeAndOffsets() {
// Offset from the beginning of debug info section.
- unsigned AccuOffset = 0;
+ unsigned SecOffset = 0;
for (SmallVectorImpl<CompileUnit *>::iterator I = CUs.begin(),
E = CUs.end(); I != E; ++I) {
- (*I)->setDebugInfoOffset(AccuOffset);
+ (*I)->setDebugInfoOffset(SecOffset);
unsigned Offset =
sizeof(int32_t) + // Length of Compilation Unit Info
sizeof(int16_t) + // DWARF version number
@@ -1805,7 +1805,7 @@ void DwarfUnits::computeSizeAndOffsets()
sizeof(int8_t); // Pointer Size (in bytes)
unsigned EndOffset = computeSizeAndOffset((*I)->getCUDie(), Offset);
- AccuOffset += EndOffset;
+ SecOffset += EndOffset;
}
}
More information about the llvm-commits
mailing list