diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-12-04 23:39:02 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-12-04 23:39:02 +0000 |
commit | 81a14a80f3e214003773365be80c88b97321e5ef (patch) | |
tree | 6cfa1b062fd854c23a3a9e4005ea1084acfa4b01 /lib/CodeGen | |
parent | f50f3a3bb9001bbfbc8d392c2021f674c80f7b7c (diff) | |
download | llvm-81a14a80f3e214003773365be80c88b97321e5ef.tar.gz llvm-81a14a80f3e214003773365be80c88b97321e5ef.tar.bz2 llvm-81a14a80f3e214003773365be80c88b97321e5ef.tar.xz |
DwarfUnit: Correct comment by generalizing over all units, not just compilation units.
Code review feedback on r196394 by Paul Robinson.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196433 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfUnit.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfUnit.cpp b/lib/CodeGen/AsmPrinter/DwarfUnit.cpp index d93f46e80d..109534c569 100644 --- a/lib/CodeGen/AsmPrinter/DwarfUnit.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfUnit.cpp @@ -1976,9 +1976,9 @@ void Unit::emitHeader(const MCSection *ASection, const MCSymbol *ASectionSym) { Asm->OutStreamer.AddComment("DWARF version number"); Asm->EmitInt16(DD->getDwarfVersion()); Asm->OutStreamer.AddComment("Offset Into Abbrev. Section"); - // We share one abbreviations table across all compilation units so it's - // always at the start of the section. Use a relocatable offset where needed - // to ensure linking doesn't invalidate that offset. + // We share one abbreviations table across all units so it's always at the + // start of the section. Use a relocatable offset where needed to ensure + // linking doesn't invalidate that offset. Asm->EmitSectionOffset(ASectionSym, ASectionSym); Asm->OutStreamer.AddComment("Address Size (in bytes)"); Asm->EmitInt8(Asm->getDataLayout().getPointerSize()); |