summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2018-06-18 15:44:36 +0000
committerPavel Labath <labath@google.com>2018-06-18 15:44:36 +0000
commit76ba49717723f6eeb10b4c47b2ef4fa3985df06f (patch)
tree98d226b1da60688d3f39d5e50d9500c8e439a168 /lldb/source/Plugins
parent9d4758ecdd1fc78c216321b808bc63e891223271 (diff)
downloadbcm5719-llvm-76ba49717723f6eeb10b4c47b2ef4fa3985df06f.tar.gz
bcm5719-llvm-76ba49717723f6eeb10b4c47b2ef4fa3985df06f.zip
Fix netbsd build broken by r334950
This also includes one more build fix for windows. llvm-svn: 334953
Diffstat (limited to 'lldb/source/Plugins')
-rw-r--r--lldb/source/Plugins/Platform/Windows/PlatformWindows.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/lldb/source/Plugins/Platform/Windows/PlatformWindows.cpp b/lldb/source/Plugins/Platform/Windows/PlatformWindows.cpp
index c752d645c55..ed2bcf0cbee 100644
--- a/lldb/source/Plugins/Platform/Windows/PlatformWindows.cpp
+++ b/lldb/source/Plugins/Platform/Windows/PlatformWindows.cpp
@@ -568,16 +568,8 @@ void PlatformWindows::GetStatus(Stream &strm) {
Platform::GetStatus(strm);
#ifdef _WIN32
- uint32_t major;
- uint32_t minor;
- uint32_t update;
- if (!HostInfo::GetOSVersion(major, minor, update)) {
- strm << "Windows";
- return;
- }
-
- strm << "Host: Windows " << major << '.' << minor << " Build: " << update
- << '\n';
+ llvm::VersionTuple version = HostInfo::GetOSVersion();
+ strm << "Host: Windows " << version.getAsString() << '\n';
#endif
}
OpenPOWER on IntegriCloud