diff options
author | Eric Christopher <echristo@gmail.com> | 2013-10-24 21:05:08 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-10-24 21:05:08 +0000 |
commit | 39cd7d48c07f6d8d104432a6b671c9cb3ede2b75 (patch) | |
tree | c84712d5e2878b4ddee63cc12fd56da385de3e90 /lib | |
parent | 2ea3b539289bd4261915192c7da35bddd7634cb9 (diff) | |
download | llvm-39cd7d48c07f6d8d104432a6b671c9cb3ede2b75.tar.gz llvm-39cd7d48c07f6d8d104432a6b671c9cb3ede2b75.tar.bz2 llvm-39cd7d48c07f6d8d104432a6b671c9cb3ede2b75.tar.xz |
Update misleading comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193371 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index adcf655b44..e0b5557ffc 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -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 = |