summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-10-24 21:05:08 +0000
committerEric Christopher <echristo@gmail.com>2013-10-24 21:05:08 +0000
commitb088d2d0bca20dfe1831d9626c559035f98e1e9c (patch)
tree73dc161a65754d85156d9e6e31bc9558773bc764 /llvm
parentdd542ef786a162ff498e307b36e55f24b8bedaa4 (diff)
downloadbcm5719-llvm-b088d2d0bca20dfe1831d9626c559035f98e1e9c.tar.gz
bcm5719-llvm-b088d2d0bca20dfe1831d9626c559035f98e1e9c.zip
Update misleading comment.
llvm-svn: 193371
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index adcf655b44f..e0b5557ffcc 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/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 =
OpenPOWER on IntegriCloud