Skip to content

Commit 8997a0e

Browse files
committed
swift-demangle: Also accept $s symbols without the $ prefix.
This makes it easier to copy-paste $s symbols with a double-click. We already had this for $S, now it also works for the new mangling prefix $s.
1 parent dfed279 commit 8997a0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/swift-demangle/swift-demangle.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ int main(int argc, char **argv) {
212212
} else {
213213
swift::Demangle::Context DCtx;
214214
for (llvm::StringRef name : InputNames) {
215-
if (name.startswith("S")) {
215+
if (name.startswith("S") || name.startswith("s") ) {
216216
std::string correctedName = std::string("$") + name.str();
217217
demangle(llvm::outs(), correctedName, DCtx, options);
218218
} else {

0 commit comments

Comments
 (0)