@@ -52,11 +52,9 @@ class SILLocation {
52
52
// / Describes a position in a source file by explicitly storing the file name,
53
53
// / line and column.
54
54
// /
55
- // / This is used for parsed locations from a SIL file , for
55
+ // / This is used for parsed locations from SIL and swiftmodule files , for
56
56
// / "-sil-based-debuginfo" (see SILDebugInfoGenerator) and for the
57
57
// / "compiler-generated" singleton location.
58
- // / In future we might also use it for de-serialized locations from a
59
- // / swiftmodule file.
60
58
struct FilenameAndLocation : public SILAllocated <FilenameAndLocation> {
61
59
unsigned line;
62
60
uint16_t column;
@@ -556,9 +554,7 @@ class RegularLocation : public SILLocation {
556
554
bool isForDebugOnly = true );
557
555
RegularLocation (SourceLoc L, bool Implicit = true )
558
556
: SILLocation(L, RegularKind, Implicit) {}
559
- RegularLocation (FilenameAndLocation *filePos)
560
- : SILLocation(filePos, RegularKind) {}
561
- RegularLocation (FilenameAndLocation *filePos, bool Implicit)
557
+ RegularLocation (FilenameAndLocation *filePos, bool Implicit = false )
562
558
: SILLocation(filePos, RegularKind, Implicit) {}
563
559
564
560
// / Convert \p loc to a RegularLocation.
@@ -627,10 +623,7 @@ class ReturnLocation : public SILLocation {
627
623
// / Construct the return location for a constructor or a destructor.
628
624
ReturnLocation (BraceStmt *BS);
629
625
630
- ReturnLocation (FilenameAndLocation *filePos)
631
- : SILLocation(filePos, ReturnKind) {}
632
-
633
- ReturnLocation (FilenameAndLocation *filePos, bool Implicit)
626
+ ReturnLocation (FilenameAndLocation *filePos, bool Implicit = false )
634
627
: SILLocation(filePos, ReturnKind, Implicit) {}
635
628
636
629
static bool isKind (const SILLocation& L) {
@@ -651,10 +644,7 @@ class ImplicitReturnLocation : public SILLocation {
651
644
652
645
ImplicitReturnLocation (AbstractFunctionDecl *AFD);
653
646
654
- ImplicitReturnLocation (FilenameAndLocation *filePos)
655
- : SILLocation(filePos, ImplicitReturnKind) {}
656
-
657
- ImplicitReturnLocation (FilenameAndLocation *filePos, bool Implicit)
647
+ ImplicitReturnLocation (FilenameAndLocation *filePos, bool Implicit = false )
658
648
: SILLocation(filePos, ImplicitReturnKind, Implicit) {}
659
649
660
650
// / Convert \p loc to an ImplicitReturnLocation.
0 commit comments