[llvm] r193371 - Update misleading comment.
Eric Christopher
echristo at gmail.com
Thu Oct 24 14:05:08 PDT 2013
Author: echristo
Date: Thu Oct 24 16:05:08 2013
New Revision: 193371
URL: http://llvm.org/viewvc/llvm-project?rev=193371&view=rev
Log:
Update misleading comment.
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=193371&r1=193370&r2=193371&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Thu Oct 24 16:05:08 2013
@@ -1959,9 +1959,10 @@ DwarfUnits::computeSizeAndOffset(DIE *Di
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 =
More information about the llvm-commits
mailing list