forked from OSchip/llvm-project
DwarfUnit: Correct comment by generalizing over all units, not just compilation units.
Code review feedback on r196394 by Paul Robinson. llvm-svn: 196433
This commit is contained in:
parent
86496a45cb
commit
6896e190cf
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue