Revert "[lldb/Utility] Provide a stringify_append overload for function pointers."

Temporarily reverts commit d10386e177
because it breaks the Windows build. MSVC complains about an ambiguous
call to an overloaded function.
This commit is contained in:
Jonas Devlieghere 2020-04-16 17:50:56 -07:00
parent 944cc5e0ab
commit 9eaf0abebf
1 changed files with 2 additions and 7 deletions

View File

@ -34,17 +34,12 @@ inline void stringify_append(llvm::raw_string_ostream &ss, const T &t) {
template <typename T>
inline void stringify_append(llvm::raw_string_ostream &ss, T *t) {
ss << static_cast<void *>(t);
ss << reinterpret_cast<void *>(t);
}
template <typename T>
inline void stringify_append(llvm::raw_string_ostream &ss, const T *t) {
ss << static_cast<const void *>(t);
}
template <typename T, typename... Args>
inline void stringify_append(llvm::raw_string_ostream &ss, T (*t)(Args...)) {
ss << "function pointer";
ss << reinterpret_cast<const void *>(t);
}
template <>