diff options
author | Jason Molenda <jmolenda@apple.com> | 2011-09-20 21:44:10 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 2011-09-20 21:44:10 +0000 |
commit | fd54b368ea4d1bd481ac4d203362c2a5556418d0 (patch) | |
tree | 3adaaf91c485565d39e32762804b69439977c8fd /lldb/source/Expression/IRForTarget.cpp | |
parent | 33e91a6cf7a66b83b29e842268bf9b0a1ef14711 (diff) | |
download | bcm5719-llvm-fd54b368ea4d1bd481ac4d203362c2a5556418d0.tar.gz bcm5719-llvm-fd54b368ea4d1bd481ac4d203362c2a5556418d0.zip |
Update declarations for all functions/methods that accept printf-style
stdarg formats to use __attribute__ format so the compiler can flag
incorrect uses. Fix all incorrect uses. Most of these are innocuous,
a few were resulting in crashes.
llvm-svn: 140185
Diffstat (limited to 'lldb/source/Expression/IRForTarget.cpp')
-rw-r--r-- | lldb/source/Expression/IRForTarget.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lldb/source/Expression/IRForTarget.cpp b/lldb/source/Expression/IRForTarget.cpp index 4d28c042841..6a70d4df095 100644 --- a/lldb/source/Expression/IRForTarget.cpp +++ b/lldb/source/Expression/IRForTarget.cpp @@ -1465,7 +1465,7 @@ IRForTarget::MaybeHandleVariable (Value *llvm_value_ptr) off_t value_alignment = (ast_context->getTypeAlign(qual_type) + 7) / 8; if (log) - log->Printf("Type of \"%s\" is [clang \"%s\", llvm \"%s\"] [size %d, align %d]", + log->Printf("Type of \"%s\" is [clang \"%s\", llvm \"%s\"] [size %lu, align %lld]", name.c_str(), qual_type.getAsString().c_str(), PrintType(value_type).c_str(), @@ -1815,7 +1815,7 @@ IRForTarget::ReplaceStaticLiterals (llvm::BasicBlock &basic_block) } ss.flush(); - log->Printf("Found ConstantFP with size %d and raw data %s", operand_data_size, s.c_str()); + log->Printf("Found ConstantFP with size %lu and raw data %s", operand_data_size, s.c_str()); } lldb_private::DataBufferHeap data(operand_data_size, 0); @@ -2186,7 +2186,7 @@ IRForTarget::ReplaceVariables (Function &llvm_function) } if (log) - log->Printf(" \"%s\" [\"%s\"] (\"%s\") placed at %d", + log->Printf(" \"%s\" [\"%s\"] (\"%s\") placed at %lld", value->getName().str().c_str(), name.GetCString(), PrintValue(value, true).c_str(), @@ -2225,7 +2225,7 @@ IRForTarget::ReplaceVariables (Function &llvm_function) } if (log) - log->Printf("Total structure [align %d, size %d]", alignment, size); + log->Printf("Total structure [align %lld, size %lu]", alignment, size); return true; } |