forked from OSchip/llvm-project
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:
parent
944cc5e0ab
commit
9eaf0abebf
|
@ -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 <>
|
||||
|
|
Loading…
Reference in New Issue