aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-01-07 19:32:45 +0000
committerEric Christopher <echristo@gmail.com>2013-01-07 19:32:45 +0000
commit3cc42205600b2d3865efd1585d79663c41e048f1 (patch)
treec43d4975d714a013dee2394b75c22957f7bf8db2 /lib/CodeGen
parentdd8e9f395e881972b320d947de88102a0be04b70 (diff)
downloadexternal_llvm-3cc42205600b2d3865efd1585d79663c41e048f1.zip
external_llvm-3cc42205600b2d3865efd1585d79663c41e048f1.tar.gz
external_llvm-3cc42205600b2d3865efd1585d79663c41e048f1.tar.bz2
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
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
index 60d7cd3..372f98d 100644
--- a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
+++ b/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);