Fix Windows build using portable types for formatting the log outputs
llvm-svn: 202723
diff --git a/lldb/source/Expression/ClangFunction.cpp b/lldb/source/Expression/ClangFunction.cpp
index e707c60..6a56970 100644
--- a/lldb/source/Expression/ClangFunction.cpp
+++ b/lldb/source/Expression/ClangFunction.cpp
@@ -173,7 +173,7 @@
}
else
{
- errors.Printf("Could not determine type of input value %zu.", i);
+ errors.Printf("Could not determine type of input value %" PRId64 ".", i);
return 1;
}
}
@@ -344,7 +344,7 @@
size_t num_args = arg_values.GetSize();
if (num_args != m_arg_values.GetSize())
{
- errors.Printf ("Wrong number of arguments - was: %zu should be: %zu", num_args, m_arg_values.GetSize());
+ errors.Printf ("Wrong number of arguments - was: %" PRId64 " should be: %" PRId64 "", num_args, m_arg_values.GetSize());
return false;
}
diff --git a/lldb/source/Expression/DWARFExpression.cpp b/lldb/source/Expression/DWARFExpression.cpp
index 28aa6d0..daff1f2e 100644
--- a/lldb/source/Expression/DWARFExpression.cpp
+++ b/lldb/source/Expression/DWARFExpression.cpp
@@ -1363,7 +1363,7 @@
if (log && log->GetVerbose())
{
size_t count = stack.size();
- log->Printf("Stack before operation has %zu values:", count);
+ log->Printf("Stack before operation has %" PRId64 " values:", count);
for (size_t i=0; i<count; ++i)
{
StreamString new_value;
@@ -2832,7 +2832,7 @@
else if (log && log->GetVerbose())
{
size_t count = stack.size();
- log->Printf("Stack after operation has %zu values:", count);
+ log->Printf("Stack after operation has %" PRId64 " values:", count);
for (size_t i=0; i<count; ++i)
{
StreamString new_value;
diff --git a/lldb/source/Expression/IRForTarget.cpp b/lldb/source/Expression/IRForTarget.cpp
index a998896..f64da07 100644
--- a/lldb/source/Expression/IRForTarget.cpp
+++ b/lldb/source/Expression/IRForTarget.cpp
@@ -2016,7 +2016,7 @@
}
ss.flush();
- log->Printf("Found ConstantFP with size %zu and raw data %s", operand_data_size, s.c_str());
+ log->Printf("Found ConstantFP with size %" PRId64 " and raw data %s", operand_data_size, s.c_str());
}
lldb_private::DataBufferHeap data(operand_data_size, 0);
@@ -2479,7 +2479,7 @@
}
if (log)
- log->Printf("Total structure [align %" PRId64 ", size %zu]", alignment, size);
+ log->Printf("Total structure [align %" PRId64 ", size %" PRId64 "]", alignment, size);
return true;
}