summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHafiz Abid Qadeer <hafiz_abid@mentor.com>2016-12-14 11:13:03 +0000
committerHafiz Abid Qadeer <hafiz_abid@mentor.com>2016-12-14 11:13:03 +0000
commite00b96ecbd88560b225ebb0c5bc72638eaad0509 (patch)
treef71c6819a99837618d901b9b690109faf17133a9
parent268f42f1cee049b37fe4f601c34d740384dbe88a (diff)
downloadbcm5719-llvm-e00b96ecbd88560b225ebb0c5bc72638eaad0509.tar.gz
bcm5719-llvm-e00b96ecbd88560b225ebb0c5bc72638eaad0509.zip
Remove code needed for supporting old VS versions.
Summary: This code was probably needed to support VS2013 and is not needed now. I have built it with VS and mingw. Ok to remove it? Reviewers: zturner, abidh Subscribers: lldb-commits Differential Revision: https://reviews.llvm.org/D27707 llvm-svn: 289644
-rw-r--r--lldb/include/lldb/Host/windows/PosixApi.h25
1 files changed, 0 insertions, 25 deletions
diff --git a/lldb/include/lldb/Host/windows/PosixApi.h b/lldb/include/lldb/Host/windows/PosixApi.h
index 7b8e22ab134..4f257378162 100644
--- a/lldb/include/lldb/Host/windows/PosixApi.h
+++ b/lldb/include/lldb/Host/windows/PosixApi.h
@@ -75,15 +75,6 @@ typedef uint32_t pid_t;
#endif // _MSC_VER
-// MSVC 2015 and higher have timespec. Otherwise we need to define it
-// ourselves.
-#if !defined(_MSC_VER) || _MSC_VER < 1900
-struct timespec {
- time_t tv_sec;
- long tv_nsec;
-};
-#endif
-
// Various useful posix functions that are not present in Windows. We provide
// custom implementations.
int vasprintf(char **ret, const char *fmt, va_list ap);
@@ -113,20 +104,4 @@ inline char *ptsname(int fd) { LLVM_BUILTIN_UNREACHABLE; }
inline pid_t fork(void) { LLVM_BUILTIN_UNREACHABLE; }
inline pid_t setsid(void) { LLVM_BUILTIN_UNREACHABLE; }
-// vsnprintf and snprintf are provided in MSVC 2015 and higher.
-#if _MSC_VER < 1900
-namespace lldb_private {
-int vsnprintf(char *buffer, size_t count, const char *format, va_list argptr);
-}
-
-// inline to avoid linkage conflicts
-int inline snprintf(char *buffer, size_t count, const char *format, ...) {
- va_list argptr;
- va_start(argptr, format);
- int r = lldb_private::vsnprintf(buffer, count, format, argptr);
- va_end(argptr);
- return r;
-}
-#endif
-
#endif
OpenPOWER on IntegriCloud