Skip to content

Commit cdda224

Browse files
committed
---
yaml --- r: 347193 b: refs/heads/master c: aeba48d h: refs/heads/master i: 347191: 4c20aa7
1 parent d8260e0 commit cdda224

File tree

7 files changed

+580
-729
lines changed

7 files changed

+580
-729
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 9e4645832541f34879856d864fe756bb3e3a756a
2+
refs/heads/master: aeba48ddc77635756d3ef88ba14f2aaacbfda820
33
refs/heads/master-next: 203b3026584ecad859eb328b2e12490099409cd5
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea

trunk/include/swift/Demangling/Demangle.h

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -484,11 +484,6 @@ enum class OperatorKind {
484484
Infix,
485485
};
486486

487-
/// Mangle an identifier using Swift's mangling rules.
488-
void mangleIdentifier(const char *data, size_t length,
489-
OperatorKind operatorKind, std::string &out,
490-
bool usePunycode = true);
491-
492487
/// Remangle a demangled parse tree.
493488
std::string mangleNode(NodePointer root);
494489

@@ -511,9 +506,20 @@ llvm::StringRef mangleNode(NodePointer root, SymbolicResolver resolver,
511506
/// Remangle in the old mangling scheme.
512507
///
513508
/// This is only used for objc-runtime names.
514-
/// If \p BorrowFrom is specified, the initial bump pointer memory is
515-
/// borrowed from the free memory of BorrowFrom.
516-
std::string mangleNodeOld(NodePointer root, NodeFactory *BorrowFrom = nullptr);
509+
std::string mangleNodeOld(NodePointer root);
510+
511+
/// Remangle in the old mangling scheme.
512+
///
513+
/// This is only used for objc-runtime names.
514+
/// The returned string is owned by \p Factory. This means \p Factory must stay
515+
/// alive as long as the returned string is used.
516+
llvm::StringRef mangleNodeOld(NodePointer node, NodeFactory &Factory);
517+
518+
/// Remangle in the old mangling scheme and embed the name in "_Tt<name>_".
519+
///
520+
/// The returned string is null terminated and owned by \p Factory. This means
521+
/// \p Factory must stay alive as long as the returned string is used.
522+
const char *mangleNodeAsObjcCString(NodePointer node, NodeFactory &Factory);
517523

518524
/// Transform the node structure to a string.
519525
///

0 commit comments

Comments
 (0)