File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -57,12 +57,12 @@ StringRef swift::getNameOfModule(const ModuleFile *MF) {
57
57
}
58
58
59
59
namespace {
60
- struct OffsetAndKind {
60
+ struct DeclAndOffset {
61
61
const Decl *D;
62
62
uint64_t offset;
63
63
};
64
64
65
- static raw_ostream &operator <<(raw_ostream &os, OffsetAndKind &&pair) {
65
+ static raw_ostream &operator <<(raw_ostream &os, DeclAndOffset &&pair) {
66
66
return os << Decl::getKindName (pair.D ->getKind ())
67
67
<< " Decl @ " << pair.offset ;
68
68
}
@@ -97,13 +97,13 @@ namespace {
97
97
os << " While deserializing " ;
98
98
99
99
if (auto VD = dyn_cast<ValueDecl>(DeclOrOffset.get ())) {
100
- os << " '" << VD->getBaseName () << " ' (" << OffsetAndKind {VD, offset}
100
+ os << " '" << VD->getBaseName () << " ' (" << DeclAndOffset {VD, offset}
101
101
<< " )" ;
102
102
} else if (auto ED = dyn_cast<ExtensionDecl>(DeclOrOffset.get ())) {
103
103
os << " extension of '" << ED->getExtendedType () << " ' ("
104
- << OffsetAndKind {ED, offset} << " )" ;
104
+ << DeclAndOffset {ED, offset} << " )" ;
105
105
} else {
106
- os << OffsetAndKind {DeclOrOffset.get (), offset};
106
+ os << DeclAndOffset {DeclOrOffset.get (), offset};
107
107
}
108
108
}
109
109
os << " in '" << getNameOfModule (MF) << " '\n " ;
You can’t perform that action at this time.
0 commit comments