mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Debug Info: type-unique enum types by virtue of their mangled name.
rdar://problem/20015686 Swift SVN r26104
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user