Skip to content

Commit 8804636

Browse files
mikeashairspeedswift
authored andcommitted
Minor cleanup of initial swiftdt work.
1 parent 6251ff7 commit 8804636

File tree

3 files changed

+3
-24
lines changed

3 files changed

+3
-24
lines changed

include/swift/Demangling/ManglingUtils.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,8 @@ void mangleIdentifier(Mangler &M, StringRef ident) {
191191
// of the identifier - that's why we added the dummy-word).
192192
// The first thing: we add the encoded sub-string length.
193193
M.Buffer << (Repl.StringPos - Pos);
194-
// assert(!isDigit(ident[Pos]) &&
195-
// "first char of sub-string may not be a digit");
194+
assert(!isDigit(ident[Pos]) &&
195+
"first char of sub-string may not be a digit");
196196
do {
197197
// Update the start position of new added words, so that they refer to
198198
// the begin of the whole mangled Buffer.

include/swift/Reflection/ReflectionContext.h

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -773,27 +773,6 @@ class ReflectionContext
773773
}
774774
}
775775

776-
StoredSignedPointer getTypeContextDescriptor(const TargetMetadata<Runtime> *Metadata) const {
777-
switch (Metadata->getKind()) {
778-
case MetadataKind::Class: {
779-
const auto cls = static_cast<const TargetClassMetadata<Runtime> *>(Metadata);
780-
if (!cls->isTypeMetadata())
781-
return {};
782-
return cls->getDescriptionAsSignedPointer();
783-
}
784-
case MetadataKind::Struct:
785-
case MetadataKind::Enum:
786-
case MetadataKind::Optional:
787-
return static_cast<const TargetValueMetadata<Runtime> *>(Metadata)
788-
->Description;
789-
case MetadataKind::ForeignClass:
790-
return static_cast<const TargetForeignClassMetadata<Runtime> *>(Metadata)
791-
->Description;
792-
default:
793-
return {};
794-
}
795-
}
796-
797776
/// Iterate the protocol conformance cache tree rooted at NodePtr, calling
798777
/// Call with the type and protocol in each node.
799778
void iterateConformanceTree(StoredPointer NodePtr,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
module SwiftRemoteMirror {
22
header "SwiftRemoteMirror.h"
33
export *
4-
}
4+
}

0 commit comments

Comments
 (0)