@@ -85,8 +85,7 @@ void HostInfoBase::Terminate() {
85
85
86
86
llvm::Triple HostInfoBase::GetTargetTriple () {
87
87
llvm::call_once (g_fields->m_host_triple_once , []() {
88
- g_fields->m_host_triple =
89
- HostInfo::GetArchitecture ().GetTriple ();
88
+ g_fields->m_host_triple = HostInfo::GetArchitecture ().GetTriple ();
90
89
});
91
90
return g_fields->m_host_triple ;
92
91
}
@@ -108,7 +107,8 @@ const ArchSpec &HostInfoBase::GetArchitecture(ArchitectureKind arch_kind) {
108
107
: g_fields->m_host_arch_32 ;
109
108
}
110
109
111
- llvm::Optional<HostInfoBase::ArchitectureKind> HostInfoBase::ParseArchitectureKind (llvm::StringRef kind) {
110
+ llvm::Optional<HostInfoBase::ArchitectureKind>
111
+ HostInfoBase::ParseArchitectureKind (llvm::StringRef kind) {
112
112
return llvm::StringSwitch<llvm::Optional<ArchitectureKind>>(kind)
113
113
.Case (LLDB_ARCH_DEFAULT, eArchKindDefault)
114
114
.Case (LLDB_ARCH_DEFAULT_32BIT, eArchKind32)
@@ -148,7 +148,8 @@ FileSpec HostInfoBase::GetHeaderDir() {
148
148
149
149
FileSpec HostInfoBase::GetSystemPluginDir () {
150
150
llvm::call_once (g_fields->m_lldb_system_plugin_dir_once , []() {
151
- if (!HostInfo::ComputeSystemPluginsDirectory (g_fields->m_lldb_system_plugin_dir ))
151
+ if (!HostInfo::ComputeSystemPluginsDirectory (
152
+ g_fields->m_lldb_system_plugin_dir ))
152
153
g_fields->m_lldb_system_plugin_dir = FileSpec ();
153
154
Log *log = GetLog (LLDBLog::Host);
154
155
LLDB_LOG (log, " system plugin dir -> `{0}`" ,
@@ -159,7 +160,8 @@ FileSpec HostInfoBase::GetSystemPluginDir() {
159
160
160
161
FileSpec HostInfoBase::GetUserPluginDir () {
161
162
llvm::call_once (g_fields->m_lldb_user_plugin_dir_once , []() {
162
- if (!HostInfo::ComputeUserPluginsDirectory (g_fields->m_lldb_user_plugin_dir ))
163
+ if (!HostInfo::ComputeUserPluginsDirectory (
164
+ g_fields->m_lldb_user_plugin_dir ))
163
165
g_fields->m_lldb_user_plugin_dir = FileSpec ();
164
166
Log *log = GetLog (LLDBLog::Host);
165
167
LLDB_LOG (log, " user plugin dir -> `{0}`" , g_fields->m_lldb_user_plugin_dir );
@@ -169,7 +171,8 @@ FileSpec HostInfoBase::GetUserPluginDir() {
169
171
170
172
FileSpec HostInfoBase::GetProcessTempDir () {
171
173
llvm::call_once (g_fields->m_lldb_process_tmp_dir_once , []() {
172
- if (!HostInfo::ComputeProcessTempFileDirectory ( g_fields->m_lldb_process_tmp_dir ))
174
+ if (!HostInfo::ComputeProcessTempFileDirectory (
175
+ g_fields->m_lldb_process_tmp_dir ))
173
176
g_fields->m_lldb_process_tmp_dir = FileSpec ();
174
177
Log *log = GetLog (LLDBLog::Host);
175
178
LLDB_LOG (log, " process temp dir -> `{0}`" ,
@@ -180,7 +183,8 @@ FileSpec HostInfoBase::GetProcessTempDir() {
180
183
181
184
FileSpec HostInfoBase::GetGlobalTempDir () {
182
185
llvm::call_once (g_fields->m_lldb_global_tmp_dir_once , []() {
183
- if (!HostInfo::ComputeGlobalTempFileDirectory ( g_fields->m_lldb_global_tmp_dir ))
186
+ if (!HostInfo::ComputeGlobalTempFileDirectory (
187
+ g_fields->m_lldb_global_tmp_dir ))
184
188
g_fields->m_lldb_global_tmp_dir = FileSpec ();
185
189
186
190
Log *log = GetLog (LLDBLog::Host);
@@ -247,8 +251,7 @@ bool HostInfoBase::ComputeSharedLibraryDirectory(FileSpec &file_spec) {
247
251
// On other posix systems, we will get .../lib(64|32)?/liblldb.so.
248
252
249
253
FileSpec lldb_file_spec (Host::GetModuleFileSpecForHostAddress (
250
- reinterpret_cast <void *>(
251
- HostInfoBase::ComputeSharedLibraryDirectory)));
254
+ reinterpret_cast <void *>(HostInfoBase::ComputeSharedLibraryDirectory)));
252
255
253
256
if (g_shlib_dir_helper)
254
257
g_shlib_dir_helper (lldb_file_spec);
0 commit comments