summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-07-29 22:24:32 +0000
committerEric Christopher <echristo@gmail.com>2013-07-29 22:24:32 +0000
commitf8542ec305586a1df10b6aa66445eda4bbb824ab (patch)
tree55056f0b11884f62990ded22ea520e8dde48b8c3 /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
parentdc118270ac8e189c75cb9e90b5b0ecd8e191f53c (diff)
downloadbcm5719-llvm-f8542ec305586a1df10b6aa66445eda4bbb824ab.tar.gz
bcm5719-llvm-f8542ec305586a1df10b6aa66445eda4bbb824ab.zip
Elaborate a bit on the type unit and ODR conditional code.
llvm-svn: 187385
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 7ba1fc187da..33d18db034d 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -1098,14 +1098,14 @@ void DwarfDebug::finalizeModuleInfo() {
TheCU->constructContainingTypeDIEs();
}
- // For types that we'd like to move to type units or ODR check go ahead
- // and either move the types out or add the ODR attribute now.
+ // Split out type units and conditionally add an ODR tag to the split
+ // out type.
// FIXME: Do type splitting.
for (unsigned i = 0, e = TypeUnits.size(); i != e; ++i) {
MD5 Hash;
DIE *Die = TypeUnits[i];
- // If we're in C++ and we want to generate the hash then go ahead and do
- // that now.
+ // If we've requested ODR hashes, the current language is C++, and the type
+ // isn't located inside a C++ anonymous namespace then add the attribute now.
if (GenerateODRHash &&
CUMap.begin()->second->getLanguage() == dwarf::DW_LANG_C_plus_plus &&
!isContainedInAnonNamespace(Die))
OpenPOWER on IntegriCloud