diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2016-09-06 19:16:48 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2016-09-06 19:16:48 +0000 |
commit | ec44cfdaf0a14fc542b611b223f9be464c688ce5 (patch) | |
tree | 07465fa6df5426dcb4aa21a702e01832e2c3f421 /lib/CMakeLists.txt | |
parent | 99f377bc53da6add3354a9a861772d2827ed5f8f (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@280732 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CMakeLists.txt')
-rw-r--r-- | lib/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index 9449421ef7af..6b8846314ec2 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -1,5 +1,6 @@ # `Support' and `TableGen' libraries are added on the top-level CMakeLists.txt +add_subdirectory(Demangle) add_subdirectory(IR) add_subdirectory(IRReader) add_subdirectory(CodeGen) |