diff options
author | Eric Christopher <echristo@gmail.com> | 2013-01-07 19:32:45 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-01-07 19:32:45 +0000 |
commit | fba226004d667028aec872945d1dd02cdfec7204 (patch) | |
tree | b5a61ccaadc5a7f14063f7d27a0f39398b658f0e /llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp | |
parent | 2cbd5767ad7dce653bdcba55e49dbbc7a09be682 (diff) | |
download | bcm5719-llvm-fba226004d667028aec872945d1dd02cdfec7204.tar.gz bcm5719-llvm-fba226004d667028aec872945d1dd02cdfec7204.zip |
Add more comments to what's going on here.
llvm-svn: 171780
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp index 60d7cd3945a..372f98da3d9 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp @@ -126,7 +126,9 @@ void CompileUnit::addSInt(DIE *Die, unsigned Attribute, /// addString - Add a string attribute data and value. We always emit a /// reference to the string pool instead of immediate strings so that DIEs have -/// more predictable sizes. +/// more predictable sizes. In the case of split dwarf we emit an index +/// into another table which gets us the static offset into the string +/// table. void CompileUnit::addString(DIE *Die, unsigned Attribute, StringRef String) { if (!DD->useSplitDwarf()) { MCSymbol *Symb = DU->getStringPoolEntry(String); |