Add more comments to what's going on here.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171780 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Christopher 2013-01-07 19:32:45 +00:00
parent dd8e9f395e
commit 3cc4220560

View File

@ -126,7 +126,9 @@ void CompileUnit::addSInt(DIE *Die, unsigned Attribute,
/// addString - Add a string attribute data and value. We always emit a /// 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 /// 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) { void CompileUnit::addString(DIE *Die, unsigned Attribute, StringRef String) {
if (!DD->useSplitDwarf()) { if (!DD->useSplitDwarf()) {
MCSymbol *Symb = DU->getStringPoolEntry(String); MCSymbol *Symb = DU->getStringPoolEntry(String);