mirror of
https://github.com/intel/llvm.git
synced 2026-01-16 05:32:28 +08:00
[lldb] Fix formatted log statement
Previously this would output literally without replacements Differential Revision: https://reviews.llvm.org/D114178
This commit is contained in:
@@ -1627,10 +1627,10 @@ void Module::RegisterXcodeSDK(llvm::StringRef sdk_name, llvm::StringRef sysroot)
|
||||
bool Module::MergeArchitecture(const ArchSpec &arch_spec) {
|
||||
if (!arch_spec.IsValid())
|
||||
return false;
|
||||
LLDB_LOG(GetLogIfAllCategoriesSet(LIBLLDB_LOG_OBJECT | LIBLLDB_LOG_MODULES),
|
||||
"module has arch %s, merging/replacing with arch %s",
|
||||
m_arch.GetTriple().getTriple().c_str(),
|
||||
arch_spec.GetTriple().getTriple().c_str());
|
||||
LLDB_LOGF(GetLogIfAllCategoriesSet(LIBLLDB_LOG_OBJECT | LIBLLDB_LOG_MODULES),
|
||||
"module has arch %s, merging/replacing with arch %s",
|
||||
m_arch.GetTriple().getTriple().c_str(),
|
||||
arch_spec.GetTriple().getTriple().c_str());
|
||||
if (!m_arch.IsCompatibleMatch(arch_spec)) {
|
||||
// The new architecture is different, we just need to replace it.
|
||||
return SetArchitecture(arch_spec);
|
||||
|
||||
Reference in New Issue
Block a user