summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/Mangled.cpp
diff options
context:
space:
mode:
authorVirgile Bello <virgile.bello@gmail.com>2013-09-18 08:09:31 +0000
committerVirgile Bello <virgile.bello@gmail.com>2013-09-18 08:09:31 +0000
commitd0c5c776bceb389cae4fbd95d513dae4b023ecd7 (patch)
treeda28ccb139cd495eecd613fb6f3af0818fcd7fdf /lldb/source/Core/Mangled.cpp
parent591f15411a454f4f53016964114a6b6b549d9f0a (diff)
downloadbcm5719-llvm-d0c5c776bceb389cae4fbd95d513dae4b023ecd7.tar.gz
bcm5719-llvm-d0c5c776bceb389cae4fbd95d513dae4b023ecd7.zip
Visual Studio 2013 compilation support: added some #ifdef _MSC_VER for unsupported code in MSVC.
llvm-svn: 190924
Diffstat (limited to 'lldb/source/Core/Mangled.cpp')
-rw-r--r--lldb/source/Core/Mangled.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lldb/source/Core/Mangled.cpp b/lldb/source/Core/Mangled.cpp
index 4655eb131a6..76d8520d59c 100644
--- a/lldb/source/Core/Mangled.cpp
+++ b/lldb/source/Core/Mangled.cpp
@@ -10,7 +10,9 @@
// FreeBSD9-STABLE requires this to know about size_t in cxxabi.h
#include <cstddef>
+#ifndef _MSC_VER
#include <cxxabi.h>
+#endif
#include "llvm/ADT/DenseMap.h"
@@ -199,7 +201,11 @@ Mangled::GetDemangledName () const
{
// We didn't already mangle this name, demangle it and if all goes well
// add it to our map.
+#if !defined(_MSC_VER)
char *demangled_name = abi::__cxa_demangle (mangled_cstr, NULL, NULL, NULL);
+#else
+ char *demangled_name = 0;
+#endif
if (demangled_name)
{
OpenPOWER on IntegriCloud