summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target/Platform.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Target/Platform.cpp')
-rw-r--r--lldb/source/Target/Platform.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/lldb/source/Target/Platform.cpp b/lldb/source/Target/Platform.cpp
index 34c7337979e..5c38ab33928 100644
--- a/lldb/source/Target/Platform.cpp
+++ b/lldb/source/Target/Platform.cpp
@@ -46,6 +46,13 @@ GetConnectedPlatformList ()
return g_remote_connected_platforms;
}
+
+const char *
+Platform::GetHostPlatformName ()
+{
+ return "host";
+}
+
//------------------------------------------------------------------
/// Get the native host platform plug-in.
///
@@ -319,11 +326,8 @@ Platform::GetName ()
const char *
Platform::GetHostname ()
{
- if (IsHost() && m_name.empty())
- {
- if (!Host::GetHostname(m_name))
- return "localhost";
- }
+ if (IsHost())
+ return "localhost";
if (m_name.empty())
return NULL;
OpenPOWER on IntegriCloud