Lines Matching defs:g_fields

73 static HostInfoBaseFields *g_fields = nullptr;
78 g_fields = new HostInfoBaseFields();
85 delete g_fields;
86 g_fields = nullptr;
90 llvm::call_once(g_fields->m_host_triple_once, []() {
91 g_fields->m_host_triple = HostInfo::GetArchitecture().GetTriple();
93 return g_fields->m_host_triple;
97 llvm::call_once(g_fields->m_host_arch_once, []() {
98 HostInfo::ComputeHostArchitectureSupport(g_fields->m_host_arch_32,
99 g_fields->m_host_arch_64);
104 return g_fields->m_host_arch_32;
106 return g_fields->m_host_arch_64;
109 return (g_fields->m_host_arch_64.IsValid()) ? g_fields->m_host_arch_64
110 : g_fields->m_host_arch_32;
123 llvm::call_once(g_fields->m_lldb_so_dir_once, []() {
124 if (!HostInfo::ComputeSharedLibraryDirectory(g_fields->m_lldb_so_dir))
125 g_fields->m_lldb_so_dir = FileSpec();
127 LLDB_LOG(log, "shlib dir -> `{0}`", g_fields->m_lldb_so_dir);
129 return g_fields->m_lldb_so_dir;
133 llvm::call_once(g_fields->m_lldb_support_exe_dir_once, []() {
134 if (!HostInfo::ComputeSupportExeDirectory(g_fields->m_lldb_support_exe_dir))
135 g_fields->m_lldb_support_exe_dir = FileSpec();
137 LLDB_LOG(log, "support exe dir -> `{0}`", g_fields->m_lldb_support_exe_dir);
139 return g_fields->m_lldb_support_exe_dir;
143 llvm::call_once(g_fields->m_lldb_headers_dir_once, []() {
144 if (!HostInfo::ComputeHeaderDirectory(g_fields->m_lldb_headers_dir))
145 g_fields->m_lldb_headers_dir = FileSpec();
147 LLDB_LOG(log, "header dir -> `{0}`", g_fields->m_lldb_headers_dir);
149 return g_fields->m_lldb_headers_dir;
153 llvm::call_once(g_fields->m_lldb_system_plugin_dir_once, []() {
155 g_fields->m_lldb_system_plugin_dir))
156 g_fields->m_lldb_system_plugin_dir = FileSpec();
159 g_fields->m_lldb_system_plugin_dir);
161 return g_fields->m_lldb_system_plugin_dir;
165 llvm::call_once(g_fields->m_lldb_user_plugin_dir_once, []() {
167 g_fields->m_lldb_user_plugin_dir))
168 g_fields->m_lldb_user_plugin_dir = FileSpec();
170 LLDB_LOG(log, "user plugin dir -> `{0}`", g_fields->m_lldb_user_plugin_dir);
172 return g_fields->m_lldb_user_plugin_dir;
176 llvm::call_once(g_fields->m_lldb_process_tmp_dir_once, []() {
178 g_fields->m_lldb_process_tmp_dir))
179 g_fields->m_lldb_process_tmp_dir = FileSpec();
182 g_fields->m_lldb_process_tmp_dir);
184 return g_fields->m_lldb_process_tmp_dir;
188 llvm::call_once(g_fields->m_lldb_global_tmp_dir_once, []() {
190 g_fields->m_lldb_global_tmp_dir))
191 g_fields->m_lldb_global_tmp_dir = FileSpec();
194 LLDB_LOG(log, "global temp dir -> `{0}`", g_fields->m_lldb_global_tmp_dir);
196 return g_fields->m_lldb_global_tmp_dir;