mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Demangle] Add back isSwiftSymbol() entry point for null-terminated strings.
This particular API can be safely used with a null-terminated string, and is used by some clients (e.g., LLDB), so add back a "const char *" variant that safely accesses a null-terminated string.
This commit is contained in:
@@ -235,6 +235,11 @@ inline bool isMangledName(llvm::StringRef mangledName) {
|
||||
/// This includes the old (<= swift 3.x) mangling prefix "_T".
|
||||
bool isSwiftSymbol(llvm::StringRef mangledName);
|
||||
|
||||
/// Returns true if the mangledName starts with the swift mangling prefix.
|
||||
///
|
||||
/// This includes the old (<= swift 3.x) mangling prefix "_T".
|
||||
bool isSwiftSymbol(const char *mangledName);
|
||||
|
||||
/// Drops the Swift mangling prefix from the given mangled name, if there is
|
||||
/// one.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user