Debug Info: type-unique enum types by virtue of their mangled name.

rdar://problem/20015686

Swift SVN r26104
This commit is contained in:
Adrian Prantl
2015-03-13 18:13:59 +00:00
parent f54e3570a3
commit 3c6af3610a
5 changed files with 16 additions and 13 deletions

View File

@@ -1348,9 +1348,9 @@ IRGenDebugInfo::createEnumType(DebugTypeInfo DbgTy, EnumDecl *Decl,
DITypeCache[DbgTy.getType()] = TH;
auto DITy = DBuilder.createUnionType(
Scope, MangledName, File, Line, SizeInBits, AlignInBits, Flags,
Scope, Decl->getName().str(), File, Line, SizeInBits, AlignInBits, Flags,
getEnumElements(DbgTy, Decl, Scope, File, Flags),
llvm::dwarf::DW_LANG_Swift);
llvm::dwarf::DW_LANG_Swift, MangledName);
FwdDecl->replaceAllUsesWith(DITy);
llvm::MDNode::deleteTemporary(FwdDecl);