File tree 10 files changed +1
-63
lines changed
10 files changed +1
-63
lines changed Original file line number Diff line number Diff line change @@ -103,8 +103,6 @@ class MRDOX_VISIBLE
103
103
MRDOX_DECL virtual bool visit (TypedefInfo const &);
104
104
MRDOX_DECL virtual bool visit (EnumInfo const &);
105
105
MRDOX_DECL virtual bool visit (VarInfo const &);
106
- // KRYSTIAN FIXME: is this correct? does it make sense to
107
- // visit a field as a non-member (a field *must* be class member)?
108
106
MRDOX_DECL virtual bool visit (FieldInfo const &);
109
107
MRDOX_DECL virtual bool visit (SpecializationInfo const &);
110
108
Original file line number Diff line number Diff line change @@ -118,10 +118,7 @@ enum class RecordKeyKind
118
118
{
119
119
Struct,
120
120
Class,
121
- Union,
122
- // KRYSTIAN NOTE: __interface is a Microsoft extension,
123
- // do we want to support it?
124
- Interface
121
+ Union
125
122
};
126
123
127
124
/* * Metadata for struct, class, or union.
Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ getTagName(Info const& I) noexcept
29
29
case RecordKeyKind::Class: return classTagName;
30
30
case RecordKeyKind::Struct: return structTagName;
31
31
case RecordKeyKind::Union: return unionTagName;
32
- case RecordKeyKind::Interface: return interfaceTagName;
33
32
default :
34
33
break ;
35
34
}
Original file line number Diff line number Diff line change @@ -41,7 +41,6 @@ constexpr llvm::StringRef javadocTagName = "doc";
41
41
constexpr llvm::StringRef enumTagName = " enum" ;
42
42
constexpr llvm::StringRef friendTagName = " friend" ;
43
43
constexpr llvm::StringRef functionTagName = " function" ;
44
- constexpr llvm::StringRef interfaceTagName = " interface" ;
45
44
constexpr llvm::StringRef namespaceTagName = " namespace" ;
46
45
constexpr llvm::StringRef paramTagName = " param" ;
47
46
constexpr llvm::StringRef returnTagName = " return" ;
Original file line number Diff line number Diff line change @@ -384,7 +384,6 @@ writeRecord(
384
384
case RecordKeyKind::Class: tagName = classTagName; break ;
385
385
case RecordKeyKind::Struct: tagName = structTagName; break ;
386
386
case RecordKeyKind::Union: tagName = unionTagName; break ;
387
- case RecordKeyKind::Interface: tagName = interfaceTagName; break ;
388
387
default :
389
388
Assert (false );
390
389
}
Original file line number Diff line number Diff line change @@ -852,7 +852,6 @@ recordKeyToString(RecordKeyKind k) noexcept
852
852
switch (k)
853
853
{
854
854
case RecordKeyKind::Struct: return " struct" ;
855
- case RecordKeyKind::Interface: return " __interface" ;
856
855
case RecordKeyKind::Union: return " union" ;
857
856
case RecordKeyKind::Class: return " class" ;
858
857
default :
Original file line number Diff line number Diff line change @@ -773,11 +773,6 @@ buildRecord(
773
773
case TagTypeKind::TTK_Union:
774
774
I.KeyKind = RecordKeyKind::Union;
775
775
break ;
776
- // KRYSTIAN NOTE: do want to support __interface?
777
- // it is a Microsoft extension.
778
- case TagTypeKind::TTK_Interface:
779
- I.KeyKind = RecordKeyKind::Interface;
780
- break ;
781
776
default :
782
777
llvm_unreachable (" unsupported TagTypeKind" );
783
778
}
Original file line number Diff line number Diff line change @@ -140,21 +140,6 @@ static void MemberRefsAbbrev(
140
140
llvm::BitCodeAbbrevOp::Fixed , 8 ) });
141
141
}
142
142
143
- #if 0
144
- static void SpecializedMemAbbrev(
145
- std::shared_ptr<llvm::BitCodeAbbrev>& Abbrev)
146
- {
147
- AbbrevGen(Abbrev, {
148
- // 0. Fixed-size array of 21-byte SymbolID pairs
149
- llvm::BitCodeAbbrevOp(llvm::BitCodeAbbrevOp::Array),
150
- llvm::BitCodeAbbrevOp(
151
- llvm::BitCodeAbbrevOp::Fixed, 8),
152
- llvm::BitCodeAbbrevOp(llvm::BitCodeAbbrevOp::Array),
153
- llvm::BitCodeAbbrevOp(
154
- llvm::BitCodeAbbrevOp::Fixed, 8) });
155
- }
156
- #endif
157
-
158
143
static void StringAbbrev (
159
144
std::shared_ptr<llvm::BitCodeAbbrev>& Abbrev)
160
145
{
Original file line number Diff line number Diff line change @@ -129,37 +129,6 @@ decodeRecord(
129
129
return Error::success ();
130
130
}
131
131
132
- #if 0
133
- // vector<SpecializedMember>
134
- inline
135
- Error
136
- decodeRecord(
137
- Record const& R,
138
- std::vector<SpecializedMember>& f,
139
- llvm::StringRef blob)
140
- {
141
- constexpr auto SpecializedMemberSize =
142
- BitCodeConstants::USRHashSize * 2;
143
- if(R.empty())
144
- return Error("record is empty");
145
- auto n = R.size() / SpecializedMemberSize;
146
- if(R.size() != n * SpecializedMemberSize)
147
- return Error("record is short");
148
- auto src = R.begin();
149
- f.resize(n);
150
- auto* dest = &f[0];
151
- while(n--)
152
- {
153
- dest->Primary = SymbolID(src);
154
- src += BitCodeConstants::USRHashSize;
155
- dest->Specialized = SymbolID(src);
156
- src += BitCodeConstants::USRHashSize;
157
- ++dest;
158
- }
159
- return Error::success();
160
- }
161
- #endif
162
-
163
132
inline
164
133
Error
165
134
decodeRecord (
Original file line number Diff line number Diff line change @@ -107,8 +107,6 @@ symbolType() const noexcept
107
107
return " class" ;
108
108
case RecordKeyKind::Union:
109
109
return " union" ;
110
- case RecordKeyKind::Interface:
111
- return " interface" ;
112
110
default :
113
111
llvm_unreachable (" unknown RecordKeyKind" );
114
112
}
You can’t perform that action at this time.
0 commit comments