llvm-project/llvm/tools/llvm-objdump
Rafael Espindola b940b66c60 Add an c++ itanium demangler to llvm.
This adds a copy of the demangler in libcxxabi.

The code also has no dependencies on anything else in LLVM. To enforce
that I added it as another library. That way a BUILD_SHARED_LIBS will
fail if anyone adds an use of StringRef for example.

The no llvm dependency combined with the fact that this has to build
on linux, OS X and Windows required a few changes to the code. In
particular:

    No constexpr.
    No alignas

On OS X at least this library has only one global symbol:
__ZN4llvm16itanium_demangleEPKcPcPmPi

My current plan is:

    Commit something like this
    Change lld to use it
    Change lldb to use it as the fallback

    Add a few #ifdefs so that exactly the same file can be used in
    libcxxabi to export abi::__cxa_demangle.

Once the fast demangler in lldb can handle any names this
implementation can be replaced with it and we will have the one true
demangler.

llvm-svn: 280732
2016-09-06 19:16:48 +00:00
..
CMakeLists.txt Add an c++ itanium demangler to llvm. 2016-09-06 19:16:48 +00:00
COFFDump.cpp llvm-objdump: add coff import library symbol listing support 2016-08-18 16:39:19 +00:00
ELFDump.cpp Simplify iterating over program headers and detect corrupt ones. 2015-07-20 13:35:33 +00:00
LLVMBuild.txt Add an c++ itanium demangler to llvm. 2016-09-06 19:16:48 +00:00
MachODump.cpp Add an c++ itanium demangler to llvm. 2016-09-06 19:16:48 +00:00
llvm-objdump.cpp llvm-objdump: ELF: Handle code and data mix in all scenarios 2016-08-25 19:41:08 +00:00
llvm-objdump.h llvm-objdump: add coff import library symbol listing support 2016-08-18 16:39:19 +00:00