Lines Matching refs:g_fields
75 HostInfoBaseFields *g_fields = nullptr; variable
78 void HostInfoBase::Initialize() { g_fields = new HostInfoBaseFields(); } in Initialize()
81 delete g_fields; in Terminate()
82 g_fields = nullptr; in Terminate()
86 llvm::call_once(g_fields->m_host_triple_once, []() { in GetTargetTriple()
87 g_fields->m_host_triple = in GetTargetTriple()
90 return g_fields->m_host_triple; in GetTargetTriple()
94 llvm::call_once(g_fields->m_host_arch_once, []() { in GetArchitecture()
95 HostInfo::ComputeHostArchitectureSupport(g_fields->m_host_arch_32, in GetArchitecture()
96 g_fields->m_host_arch_64); in GetArchitecture()
101 return g_fields->m_host_arch_32; in GetArchitecture()
103 return g_fields->m_host_arch_64; in GetArchitecture()
106 return (g_fields->m_host_arch_64.IsValid()) ? g_fields->m_host_arch_64 in GetArchitecture()
107 : g_fields->m_host_arch_32; in GetArchitecture()
119 llvm::call_once(g_fields->m_lldb_so_dir_once, []() { in GetShlibDir()
120 if (!HostInfo::ComputeSharedLibraryDirectory(g_fields->m_lldb_so_dir)) in GetShlibDir()
121 g_fields->m_lldb_so_dir = FileSpec(); in GetShlibDir()
123 LLDB_LOG(log, "shlib dir -> `{0}`", g_fields->m_lldb_so_dir); in GetShlibDir()
125 return g_fields->m_lldb_so_dir; in GetShlibDir()
129 llvm::call_once(g_fields->m_lldb_support_exe_dir_once, []() { in GetSupportExeDir()
130 if (!HostInfo::ComputeSupportExeDirectory(g_fields->m_lldb_support_exe_dir)) in GetSupportExeDir()
131 g_fields->m_lldb_support_exe_dir = FileSpec(); in GetSupportExeDir()
133 LLDB_LOG(log, "support exe dir -> `{0}`", g_fields->m_lldb_support_exe_dir); in GetSupportExeDir()
135 return g_fields->m_lldb_support_exe_dir; in GetSupportExeDir()
139 llvm::call_once(g_fields->m_lldb_headers_dir_once, []() { in GetHeaderDir()
140 if (!HostInfo::ComputeHeaderDirectory(g_fields->m_lldb_headers_dir)) in GetHeaderDir()
141 g_fields->m_lldb_headers_dir = FileSpec(); in GetHeaderDir()
143 LLDB_LOG(log, "header dir -> `{0}`", g_fields->m_lldb_headers_dir); in GetHeaderDir()
145 return g_fields->m_lldb_headers_dir; in GetHeaderDir()
149 llvm::call_once(g_fields->m_lldb_system_plugin_dir_once, []() { in GetSystemPluginDir()
150 if (!HostInfo::ComputeSystemPluginsDirectory(g_fields->m_lldb_system_plugin_dir)) in GetSystemPluginDir()
151 g_fields->m_lldb_system_plugin_dir = FileSpec(); in GetSystemPluginDir()
154 g_fields->m_lldb_system_plugin_dir); in GetSystemPluginDir()
156 return g_fields->m_lldb_system_plugin_dir; in GetSystemPluginDir()
160 llvm::call_once(g_fields->m_lldb_user_plugin_dir_once, []() { in GetUserPluginDir()
161 if (!HostInfo::ComputeUserPluginsDirectory(g_fields->m_lldb_user_plugin_dir)) in GetUserPluginDir()
162 g_fields->m_lldb_user_plugin_dir = FileSpec(); in GetUserPluginDir()
164 LLDB_LOG(log, "user plugin dir -> `{0}`", g_fields->m_lldb_user_plugin_dir); in GetUserPluginDir()
166 return g_fields->m_lldb_user_plugin_dir; in GetUserPluginDir()
170 llvm::call_once(g_fields->m_lldb_process_tmp_dir_once, []() { in GetProcessTempDir()
171 if (!HostInfo::ComputeProcessTempFileDirectory( g_fields->m_lldb_process_tmp_dir)) in GetProcessTempDir()
172 g_fields->m_lldb_process_tmp_dir = FileSpec(); in GetProcessTempDir()
175 g_fields->m_lldb_process_tmp_dir); in GetProcessTempDir()
177 return g_fields->m_lldb_process_tmp_dir; in GetProcessTempDir()
181 llvm::call_once(g_fields->m_lldb_global_tmp_dir_once, []() { in GetGlobalTempDir()
182 if (!HostInfo::ComputeGlobalTempFileDirectory( g_fields->m_lldb_global_tmp_dir)) in GetGlobalTempDir()
183 g_fields->m_lldb_global_tmp_dir = FileSpec(); in GetGlobalTempDir()
186 LLDB_LOG(log, "global temp dir -> `{0}`", g_fields->m_lldb_global_tmp_dir); in GetGlobalTempDir()
188 return g_fields->m_lldb_global_tmp_dir; in GetGlobalTempDir()