Move the rest of the HostInfo functions over.

This should bring HostInfo up to 99% completion.  The remainder
of code in Host will be split into instantiatable classes
representing host processes, threads, dynamic libraries, and
process launching strategies.

llvm-svn: 216230
diff --git a/lldb/source/Host/windows/HostInfoWindows.cpp b/lldb/source/Host/windows/HostInfoWindows.cpp
index e048735..f7d7411 100644
--- a/lldb/source/Host/windows/HostInfoWindows.cpp
+++ b/lldb/source/Host/windows/HostInfoWindows.cpp
@@ -15,6 +15,8 @@
 
 using namespace lldb_private;
 
+FileSpec HostInfoWindows::m_program_filespec;
+
 size_t
 HostInfoWindows::GetPageSize()
 {
@@ -79,6 +81,21 @@
     return true;
 }
 
+FileSpec
+HostInfoWindows::GetProgramFileSpec()
+{
+    static bool is_initialized = false;
+    if (!is_initialized)
+    {
+        is_initialized = true;
+
+        std::vector<char> buffer(PATH_MAX);
+        ::GetModuleFileName(NULL, &buffer[0], buffer.size());
+        m_program_filespec.SetFile(&buffer[0], false);
+    }
+    return m_program_filespec;
+}
+
 bool
 HostInfoWindows::ComputePythonDirectory(FileSpec &file_spec)
 {