mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-28 03:25:23 +00:00
Rename variable to be more descriptive.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182903 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1794,10 +1794,10 @@ DwarfUnits::computeSizeAndOffset(DIE *Die, unsigned Offset) {
|
|||||||
// Compute the size and offset of all the DIEs.
|
// Compute the size and offset of all the DIEs.
|
||||||
void DwarfUnits::computeSizeAndOffsets() {
|
void DwarfUnits::computeSizeAndOffsets() {
|
||||||
// Offset from the beginning of debug info section.
|
// Offset from the beginning of debug info section.
|
||||||
unsigned AccuOffset = 0;
|
unsigned SecOffset = 0;
|
||||||
for (SmallVectorImpl<CompileUnit *>::iterator I = CUs.begin(),
|
for (SmallVectorImpl<CompileUnit *>::iterator I = CUs.begin(),
|
||||||
E = CUs.end(); I != E; ++I) {
|
E = CUs.end(); I != E; ++I) {
|
||||||
(*I)->setDebugInfoOffset(AccuOffset);
|
(*I)->setDebugInfoOffset(SecOffset);
|
||||||
unsigned Offset =
|
unsigned Offset =
|
||||||
sizeof(int32_t) + // Length of Compilation Unit Info
|
sizeof(int32_t) + // Length of Compilation Unit Info
|
||||||
sizeof(int16_t) + // DWARF version number
|
sizeof(int16_t) + // DWARF version number
|
||||||
@@ -1805,7 +1805,7 @@ void DwarfUnits::computeSizeAndOffsets() {
|
|||||||
sizeof(int8_t); // Pointer Size (in bytes)
|
sizeof(int8_t); // Pointer Size (in bytes)
|
||||||
|
|
||||||
unsigned EndOffset = computeSizeAndOffset((*I)->getCUDie(), Offset);
|
unsigned EndOffset = computeSizeAndOffset((*I)->getCUDie(), Offset);
|
||||||
AccuOffset += EndOffset;
|
SecOffset += EndOffset;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user