diff options
author | Pavel Labath <labath@google.com> | 2017-01-06 10:20:32 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2017-01-06 10:20:32 +0000 |
commit | 684c2c93940f41916d1b5be3a9f08e171773ef33 (patch) | |
tree | 6d3f5a70df17342e061e4cb9e9cd7f84d7def329 /lldb/source/Plugins/ScriptInterpreter/Python | |
parent | a284b76d9e4cbe8994eaa7c3823ea1b84f72f127 (diff) | |
download | bcm5719-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.cpp | 2 |
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) { |