mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-24 01:58:21 +00:00
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
This commit is contained in:
parent
a284b76d9e
commit
684c2c9394
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user