summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2014-08-21 20:02:17 +0000
committerZachary Turner <zturner@google.com>2014-08-21 20:02:17 +0000
commitb245ecac79459de6db2d1443190a1e67eac56fff (patch)
tree50381129110ed519d2b3516006c321c61b1cab18 /lldb/source/Target
parent5ed17dad95d6c14d00565fa093da889ac4856ccb (diff)
downloadbcm5719-llvm-b245ecac79459de6db2d1443190a1e67eac56fff.tar.gz
bcm5719-llvm-b245ecac79459de6db2d1443190a1e67eac56fff.zip
Move GetUsername and GetGroupname to HostInfoPosix
llvm-svn: 216210
Diffstat (limited to 'lldb/source/Target')
-rw-r--r--lldb/source/Target/Platform.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/lldb/source/Target/Platform.cpp b/lldb/source/Target/Platform.cpp
index 5082b908b2e..fe73be2d05b 100644
--- a/lldb/source/Target/Platform.cpp
+++ b/lldb/source/Target/Platform.cpp
@@ -776,30 +776,34 @@ Platform::SetRemoteWorkingDirectory(const ConstString &path)
const char *
Platform::GetUserName (uint32_t uid)
{
+#if !defined(LLDB_DISABLE_POSIX)
const char *user_name = GetCachedUserName(uid);
if (user_name)
return user_name;
if (IsHost())
{
std::string name;
- if (Host::GetUserName(uid, name))
+ if (HostInfo::LookupUserName(uid, name))
return SetCachedUserName (uid, name.c_str(), name.size());
}
+#endif
return NULL;
}
const char *
Platform::GetGroupName (uint32_t gid)
{
+#if !defined(LLDB_DISABLE_POSIX)
const char *group_name = GetCachedGroupName(gid);
if (group_name)
return group_name;
if (IsHost())
{
std::string name;
- if (Host::GetGroupName(gid, name))
+ if (HostInfo::LookupGroupName(gid, name))
return SetCachedGroupName (gid, name.c_str(), name.size());
}
+#endif
return NULL;
}
OpenPOWER on IntegriCloud