[Lldb-commits] [PATCH] D23830: Add cmake option to choose whether to use the builtin demangler
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Fri Aug 26 02:56:06 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL279808: Add cmake option to choose whether to use the builtin demangler (authored by labath).
Changed prior to commit:
https://reviews.llvm.org/D23830?vs=69093&id=69333#toc
Repository:
rL LLVM
https://reviews.llvm.org/D23830
Files:
lldb/trunk/cmake/modules/LLDBConfig.cmake
lldb/trunk/source/Core/Mangled.cpp
Index: lldb/trunk/source/Core/Mangled.cpp
===================================================================
--- lldb/trunk/source/Core/Mangled.cpp
+++ lldb/trunk/source/Core/Mangled.cpp
@@ -14,20 +14,15 @@
#include "lldb/Host/windows/windows.h"
#include <Dbghelp.h>
#pragma comment(lib, "dbghelp.lib")
-#define LLDB_USE_BUILTIN_DEMANGLER
-#elif defined (__FreeBSD__)
-#define LLDB_USE_BUILTIN_DEMANGLER
-#else
-#include <cxxabi.h>
#endif
#ifdef LLDB_USE_BUILTIN_DEMANGLER
-
// Provide a fast-path demangler implemented in FastDemangle.cpp until it can
// replace the existing C++ demangler with a complete implementation
#include "lldb/Core/FastDemangle.h"
#include "lldb/Core/CxaDemangle.h"
-
+#else
+#include <cxxabi.h>
#endif
Index: lldb/trunk/cmake/modules/LLDBConfig.cmake
===================================================================
--- lldb/trunk/cmake/modules/LLDBConfig.cmake
+++ lldb/trunk/cmake/modules/LLDBConfig.cmake
@@ -401,3 +401,12 @@
"- ignore this warning and accept occasional instability")
endif()
endif()
+
+if(MSVC)
+ set(LLDB_USE_BUILTIN_DEMANGLER ON)
+else()
+ option(LLDB_USE_BUILTIN_DEMANGLER "Use lldb's builtin demangler instead of the system one" ON)
+endif()
+if(LLDB_USE_BUILTIN_DEMANGLER)
+ add_definitions(-DLLDB_USE_BUILTIN_DEMANGLER)
+endif()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23830.69333.patch
Type: text/x-patch
Size: 1332 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20160826/81c32257/attachment-0001.bin>
More information about the lldb-commits
mailing list