@@ -1060,7 +1060,7 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
10601060 llvm::DIFile *File, unsigned Line, unsigned SizeInBits,
10611061 llvm::DINode::DIFlags Flags, StringRef UniqueID, StringRef Name) {
10621062 // Forward declare this first because types may be recursive.
1063- auto FwdDecl = llvm::TempDIType (DBuilder.createReplaceableCompositeType (
1063+ llvm::TempDICompositeType FwdDecl (DBuilder.createReplaceableCompositeType (
10641064 llvm::dwarf::DW_TAG_structure_type, Name, Scope, File, Line,
10651065 llvm::dwarf::DW_LANG_Swift, SizeInBits, 0 , Flags, UniqueID));
10661066
@@ -1232,7 +1232,7 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
12321232 // Default, since Swift doesn't allow specifying a custom alignment.
12331233 unsigned AlignInBits = 0 ;
12341234
1235- auto FwdDecl = llvm::TempDIType (DBuilder.createReplaceableCompositeType (
1235+ llvm::TempDICompositeType FwdDecl (DBuilder.createReplaceableCompositeType (
12361236 llvm::dwarf::DW_TAG_enumeration_type, MangledName, Scope, File, Line,
12371237 llvm::dwarf::DW_LANG_Swift, SizeInBits, AlignInBits, Flags,
12381238 MangledName));
@@ -1286,7 +1286,7 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
12861286
12871287 // A variant part should actually be a child to a DW_TAG_structure_type
12881288 // according to the DWARF spec.
1289- auto FwdDecl = llvm::TempDIType (DBuilder.createReplaceableCompositeType (
1289+ llvm::TempDICompositeType FwdDecl (DBuilder.createReplaceableCompositeType (
12901290 llvm::dwarf::DW_TAG_structure_type, MangledName, Scope, File, Line,
12911291 llvm::dwarf::DW_LANG_Swift, SizeInBits, AlignInBits, Flags,
12921292 MangledName));
@@ -1361,7 +1361,7 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
13611361
13621362 // A variant part should actually be a child to a DW_TAG_structure_type
13631363 // according to the DWARF spec.
1364- auto FwdDecl = llvm::TempDIType (DBuilder.createReplaceableCompositeType (
1364+ llvm::TempDICompositeType FwdDecl (DBuilder.createReplaceableCompositeType (
13651365 llvm::dwarf::DW_TAG_structure_type, MangledName, Scope, File, Line,
13661366 llvm::dwarf::DW_LANG_Swift, SizeInBits, AlignInBits, Flags,
13671367 MangledName));
@@ -1561,7 +1561,7 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
15611561 unsigned SizeInBits, unsigned AlignInBits,
15621562 llvm::DINode::DIFlags Flags,
15631563 StringRef MangledName) {
1564- auto FwdDecl = llvm::TempDINode (DBuilder.createReplaceableCompositeType (
1564+ llvm::TempDICompositeType FwdDecl (DBuilder.createReplaceableCompositeType (
15651565 llvm::dwarf::DW_TAG_subroutine_type, MangledName, Scope, MainFile, 0 ,
15661566 llvm::dwarf::DW_LANG_Swift, SizeInBits, AlignInBits, Flags,
15671567 MangledName));
@@ -1627,7 +1627,7 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
16271627 // FIXME: assert that SizeInBits == OffsetInBits.
16281628 SizeInBits = OffsetInBits;
16291629
1630- auto FwdDecl = llvm::TempDINode (DBuilder.createReplaceableCompositeType (
1630+ llvm::TempDICompositeType FwdDecl (DBuilder.createReplaceableCompositeType (
16311631 llvm::dwarf::DW_TAG_structure_type, MangledName, Scope, MainFile, 0 ,
16321632 llvm::dwarf::DW_LANG_Swift, SizeInBits, AlignInBits, Flags,
16331633 MangledName));
@@ -1951,7 +1951,7 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
19511951 auto DerivedFrom = Superclass.isNull ()
19521952 ? nullptr
19531953 : getOrCreateDesugaredType (Superclass, DbgTy);
1954- auto FwdDecl = llvm::TempDIType (DBuilder.createReplaceableCompositeType (
1954+ llvm::TempDICompositeType FwdDecl (DBuilder.createReplaceableCompositeType (
19551955 llvm::dwarf::DW_TAG_structure_type, MangledName, Scope, L.File ,
19561956 FwdDeclLine, llvm::dwarf::DW_LANG_Swift, SizeInBits, AlignInBits,
19571957 Flags));
@@ -2307,7 +2307,7 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
23072307 // winning over a full definition.
23082308 auto *FwdDecl = DBuilder.createReplaceableCompositeType (
23092309 llvm::dwarf::DW_TAG_structure_type, MangledName, Scope, 0 , 0 ,
2310- llvm::dwarf::DW_LANG_Swift, 0 , 0 , llvm::DINode::FlagFwdDecl );
2310+ llvm::dwarf::DW_LANG_Swift);
23112311 FwdDeclTypes.emplace_back (
23122312 std::piecewise_construct, std::make_tuple (MangledName),
23132313 std::make_tuple (static_cast <llvm::Metadata *>(FwdDecl)));
@@ -2463,7 +2463,7 @@ void IRGenDebugInfoImpl::finalize() {
24632463 // Finalize all replaceable forward declarations.
24642464 auto finalize = [&](llvm::MDNode *FwdDeclType, llvm::MDNode *FullType,
24652465 llvm::MDString *UID = nullptr ) {
2466- llvm::TempMDNode FwdDecl (cast<llvm::MDNode >(FwdDeclType));
2466+ llvm::TempDICompositeType FwdDecl (cast<llvm::DICompositeType >(FwdDeclType));
24672467 llvm::Metadata *Replacement = FullType ? FullType : FwdDeclType;
24682468 llvm::Metadata *Replaced = DBuilder.replaceTemporary (
24692469 std::move (FwdDecl), cast<llvm::MDNode>(Replacement));
0 commit comments