Skip to content

Commit

Permalink
Sync demangle
Browse files Browse the repository at this point in the history
  • Loading branch information
fcharlie committed Dec 31, 2023
1 parent 217ffb1 commit ce03f29
Show file tree
Hide file tree
Showing 8 changed files with 568 additions and 114 deletions.
2 changes: 1 addition & 1 deletion src/belaund/llvm/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
llvm-project:8be07adfb42d8d5d060b807d5445b6fefc949bee
llvm-project:946ebad67a21212d11a0dd4deb7cdedc297d47bc
5 changes: 3 additions & 2 deletions src/belaund/llvm/include/llvm/Demangle/Demangle.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ char *dlangDemangle(std::string_view MangledName);
/// demangling occurred.
std::string demangle(std::string_view MangledName);

bool nonMicrosoftDemangle(std::string_view MangledName, std::string &Result);
bool nonMicrosoftDemangle(std::string_view MangledName, std::string &Result,
bool CanHaveLeadingDot = true);

/// "Partial" demangler. This supports demangling a string into an AST
/// (typically an intermediate stage in itaniumDemangle) and querying certain
Expand Down Expand Up @@ -102,7 +103,7 @@ struct ItaniumPartialDemangler {
char *getFunctionParameters(char *Buf, size_t *N) const;
char *getFunctionReturnType(char *Buf, size_t *N) const;

/// If this function has any any cv or reference qualifiers. These imply that
/// If this function has any cv or reference qualifiers. These imply that
/// the function is a non-static member function.
bool hasFunctionQualifiers() const;

Expand Down
5 changes: 5 additions & 0 deletions src/belaund/llvm/include/llvm/Demangle/DemangleConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@
#define DEMANGLE_FALLTHROUGH
#endif

#ifndef DEMANGLE_ASSERT
#include <cassert>
#define DEMANGLE_ASSERT(__expr, __msg) assert((__expr) && (__msg))
#endif

#define DEMANGLE_NAMESPACE_BEGIN namespace llvm { namespace itanium_demangle {
#define DEMANGLE_NAMESPACE_END } }

Expand Down

0 comments on commit ce03f29

Please sign in to comment.