aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Demangle/Demangle.cpp
AgeCommit message (Collapse)AuthorFilesLines
2021-06-17[Demangle] Support Rust v0 mangling scheme in llvm::demangleTomasz Miąsko1-0/+7
The llvm::demangle is currently used by llvm-objdump and llvm-readobj, so this effectively adds support for Rust v0 mangling to those applications. Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D104340
2020-07-20[NFC] Use std::free instead of ::freeLouis Dionne1-1/+1
Since we include <cstdlib> instead of <stdlib.h>, it makes sense to use std::free.
2020-05-20Give microsoftDemangle() an outparam for how many input bytes were consumed.Nico Weber1-2/+2
Demangling Itanium symbols either consumes the whole input or fails, but Microsoft symbols can be successfully demangled with just some of the input. Add an outparam that enables clients to know how much of the input was consumed, and use this flag to give llvm-undname an opt-in warning on partially consumed symbols. Differential Revision: https://reviews.llvm.org/D80173
2019-01-22Add missing include (cstdlib) to Demangle.hKonstantin Zhuravlyov1-0/+1
Differential Revision: https://reviews.llvm.org/D57035 llvm-svn: 351861
2019-01-19Update the file headers across all of the LLVM projects in the monorepoChandler Carruth1-4/+3
to reflect the new license. We understand that people may be surprised that we're moving the header entirely to discuss the new license. We checked this carefully with the Foundation's lawyer and we believe this is the correct approach. Essentially, all code in the project is now made available by the LLVM project under our new license, so you will see that the license headers include that license only. Some of our contributors have contributed code under our old license, and accordingly, we have retained a copy of our old license notice in the top-level files in each project and repository. llvm-svn: 351636
2019-01-18Add __[_[_]]Z demangling to new common demangle functionJames Henderson1-1/+7
This is a follow-up to r351448. It adds support for other _*Z extensions of the Itanium demanling, to the newly available demangle function heuristic. Reviewed by: erik.pilkington, rupprecht, grimar Differential Revision: https://reviews.llvm.org/D56855 llvm-svn: 351551
2019-01-17Move demangling function from llvm-objdump to Demangle libraryJames Henderson1-0/+30
This allows it to be used in an upcoming llvm-readobj change. A small change in internal behaviour of the function is to always call the microsoftDemangle function if the string does not have an itanium encoding prefix, rather than only if it starts with '?'. This is harmless because the microsoftDemangle function does the same check already. Reviewed by: grimar, erik.pilkington Differential Revision: https://reviews.llvm.org/D56721 llvm-svn: 351448