Update misleading comment.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193371 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Christopher 2013-10-24 21:05:08 +00:00
parent 2ea3b53928
commit 39cd7d48c0

View File

@ -1959,9 +1959,10 @@ DwarfUnits::computeSizeAndOffset(DIE *Die, unsigned Offset) {
return Offset;
}
// Compute the size and offset of all the DIEs.
// Compute the size and offset for each DIE.
void DwarfUnits::computeSizeAndOffsets() {
// Offset from the beginning of debug info section.
// Iterate over each compile unit and set the size and offsets for each
// DIE within each compile unit. All offsets are CU relative.
for (SmallVectorImpl<CompileUnit *>::iterator I = CUs.begin(),
E = CUs.end(); I != E; ++I) {
unsigned Offset =