aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-09-23 23:15:58 +0000
committerEric Christopher <echristo@gmail.com>2013-09-23 23:15:58 +0000
commit5a63474e2d4c797ca8245edae4064f17b47df3ee (patch)
treed6b8a9430dd3c59241d28038cb325b81b1bb855d /lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
parent262f548b09b9208a067814c612859410f82d2273 (diff)
downloadexternal_llvm-5a63474e2d4c797ca8245edae4064f17b47df3ee.zip
external_llvm-5a63474e2d4c797ca8245edae4064f17b47df3ee.tar.gz
external_llvm-5a63474e2d4c797ca8245edae4064f17b47df3ee.tar.bz2
Add more external types to the pubtypes table. Expand the asm
checking patch until we get full dumping support. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191239 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
index 171c138..7d35937 100644
--- a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
+++ b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
@@ -880,7 +880,7 @@ void CompileUnit::addGlobalName(StringRef Name, DIE *Die) {
///
void CompileUnit::addGlobalType(DIType Ty) {
DIDescriptor Context = DD->resolve(Ty.getContext());
- if (Ty.isCompositeType() && !Ty.getName().empty() && !Ty.isForwardDecl() &&
+ if (!Ty.getName().empty() && !Ty.isForwardDecl() &&
(!Context || Context.isCompileUnit() || Context.isFile() ||
Context.isNameSpace()))
if (DIEEntry *Entry = getDIEEntry(Ty))