mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
AK: Turn demangling back on for userspace
This didn't work at some point, but now it apparently works again. :^)
This commit is contained in:
parent
ea8d386146
commit
8ccf0e16a9
Notes:
sideshowbarker
2024-07-19 09:41:27 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/8ccf0e16a98
1 changed files with 0 additions and 4 deletions
|
@ -33,16 +33,12 @@ namespace AK {
|
|||
|
||||
inline String demangle(const StringView& name)
|
||||
{
|
||||
#ifdef KERNEL
|
||||
int status = 0;
|
||||
auto* demangled_name = abi::__cxa_demangle(String(name).characters(), nullptr, nullptr, &status);
|
||||
auto string = String(status == 0 ? demangled_name : name);
|
||||
if (status == 0)
|
||||
kfree(demangled_name);
|
||||
return string;
|
||||
#else
|
||||
return name;
|
||||
#endif
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue