Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removes internal files used for swift demangling and replaces with package dependency on swift-demangling #16

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Removes internal files used for swift demangling and replaces with pa…
…ckage dependency on swift-demangling
  • Loading branch information
atreat committed May 7, 2024
commit 4ea42520c98425a97e91a5dd373f8206ff044f94
10 changes: 2 additions & 8 deletions Source/KSCrash/Recording/Tools/KSDemangle_Swift.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,10 @@
//


#include "Demangle.h"
#include "KSDemangle_Swift.h"
#include "DemangleService.h"

extern "C" char* ksdm_demangleSwift(const char* mangledSymbol)
{
swift::Demangle::DemangleOptions options = swift::Demangle::DemangleOptions::SimplifiedUIDemangleOptions();
std::string demangled = swift::Demangle::demangleSymbolAsString(mangledSymbol, options);
if(demangled.length() == 0)
{
return NULL;
}
return strdup(demangled.c_str());
return demangleSymbol(mangledSymbol);
}
71 changes: 0 additions & 71 deletions Source/KSCrash/swift/Basic/Demangle.cpp

This file was deleted.

Loading