[lldb/Reproducers] Add logging to the string template specialization

Only the templated function had logging for deserialization. The string
deserializer is implemented as a specialization and now prints to the
log as well.
This commit is contained in:
Jonas Devlieghere 2020-01-29 09:15:13 -08:00
parent 90c31b0f42
commit 33fa6727b7
1 changed files with 4 additions and 0 deletions

View File

@ -32,6 +32,10 @@ template <> const char *Deserializer::Deserialize<const char *>() {
return nullptr;
const char *str = m_buffer.data();
m_buffer = m_buffer.drop_front(pos + 1);
#ifdef LLDB_REPRO_INSTR_TRACE
llvm::errs() << "Deserializing with " << LLVM_PRETTY_FUNCTION << " -> \""
<< str << "\"\n";
#endif
return str;
}