Document __demangle() and fix a const func ptr bug

This commit is contained in:
Justine Tunney 2024-06-02 04:15:48 -07:00
parent c67faf61df
commit 9aa353d88b
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
7 changed files with 618 additions and 670 deletions

View file

@ -9,6 +9,13 @@
#ifndef _LIBCPP___CONFIG_SITE
#define _LIBCPP___CONFIG_SITE
// every c++ program is bound to include *something* from the stl
// therefore we schlep in 28k of code needed to print c++ symbols
// however c programs should never include *any* stl headers ever
#ifndef TINY
__static_yoink("__demangle");
#endif
// We get a million `error: always_inline function might not be
// inlinable` because we're using LLVM LIBCXX with GCC, which has
// no exclude_from_explicit_instantiation attribute, which libcxx