summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ScriptInterpreter/Python
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2017-01-06 10:20:32 +0000
committerPavel Labath <labath@google.com>2017-01-06 10:20:32 +0000
commit684c2c93940f41916d1b5be3a9f08e171773ef33 (patch)
tree6d3f5a70df17342e061e4cb9e9cd7f84d7def329 /lldb/source/Plugins/ScriptInterpreter/Python
parenta284b76d9e4cbe8994eaa7c3823ea1b84f72f127 (diff)
downloadbcm5719-llvm-684c2c93940f41916d1b5be3a9f08e171773ef33.tar.gz
bcm5719-llvm-684c2c93940f41916d1b5be3a9f08e171773ef33.zip
Fix clang build for r291198
Older clangs (<=3.6) complain about a redefinition when we try to specialize a templace function declared with = delete. Instead, I just don't define the function body, which will trigger a linker error if someone tries to use an unknown function. llvm-svn: 291226
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python')
-rw-r--r--lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
index b9e915d6bfe..357b48e53c4 100644
--- a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
+++ b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
@@ -1599,7 +1599,7 @@ StructuredData::ArraySP ScriptInterpreterPython::OSPlugin_ThreadsInfo(
// as the underlying typedef for uint* types, size_t, off_t and other values
// change.
-template <typename T> const char *GetPythonValueFormatString(T t) = delete;
+template <typename T> const char *GetPythonValueFormatString(T t);
template <> const char *GetPythonValueFormatString(char *) { return "s"; }
template <> const char *GetPythonValueFormatString(char) { return "b"; }
template <> const char *GetPythonValueFormatString(unsigned char) {
OpenPOWER on IntegriCloud