diff options
| -rw-r--r-- | lldb/include/lldb/Breakpoint/BreakpointLocation.h | 2 | ||||
| -rw-r--r-- | lldb/source/Expression/IRExecutionUnit.cpp | 1 | ||||
| -rw-r--r-- | lldb/source/Host/common/ThisThread.cpp | 4 | ||||
| -rw-r--r-- | lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp | 1 | ||||
| -rw-r--r-- | lldb/source/Symbol/ClangASTType.cpp | 2 | ||||
| -rw-r--r-- | lldb/source/Target/Memory.cpp | 16 | ||||
| -rw-r--r-- | lldb/source/Target/Platform.cpp | 1 |
7 files changed, 17 insertions, 10 deletions
diff --git a/lldb/include/lldb/Breakpoint/BreakpointLocation.h b/lldb/include/lldb/Breakpoint/BreakpointLocation.h index 6f139680dbb..5097150d682 100644 --- a/lldb/include/lldb/Breakpoint/BreakpointLocation.h +++ b/lldb/include/lldb/Breakpoint/BreakpointLocation.h @@ -52,8 +52,6 @@ class BreakpointLocation : public StoppointLocation { public: - friend class BreakpointLocationList; - ~BreakpointLocation (); //------------------------------------------------------------------ diff --git a/lldb/source/Expression/IRExecutionUnit.cpp b/lldb/source/Expression/IRExecutionUnit.cpp index 41cc89979f3..3c8548d85e4 100644 --- a/lldb/source/Expression/IRExecutionUnit.cpp +++ b/lldb/source/Expression/IRExecutionUnit.cpp @@ -301,6 +301,7 @@ IRExecutionUnit::GetRunnableInfo(Error &error, .setErrorStr(&error_string) .setRelocationModel(relocModel) .setJITMemoryManager(new MemoryManager(*this)) + .setCodeModel(codeModel) .setOptLevel(llvm::CodeGenOpt::Less); llvm::StringRef mArch; diff --git a/lldb/source/Host/common/ThisThread.cpp b/lldb/source/Host/common/ThisThread.cpp index 5802781f50b..289ec780e9f 100644 --- a/lldb/source/Host/common/ThisThread.cpp +++ b/lldb/source/Host/common/ThisThread.cpp @@ -28,12 +28,12 @@ ThisThread::SetName(llvm::StringRef name, int max_length) // off leads to a lot of similar named threads. Go through the thread name // and search for the last dot and use that. - if (max_length > 0 && truncated_name.length() > max_length) + if (max_length > 0 && truncated_name.length() > static_cast<size_t>(max_length)) { // First see if we can get lucky by removing any initial or final braces. std::string::size_type begin = truncated_name.find_first_not_of("(<"); std::string::size_type end = truncated_name.find_last_not_of(")>."); - if (end - begin > max_length) + if (end - begin > static_cast<size_t>(max_length)) { // We're still too long. Since this is a dotted component, use everything after the last // dot, up to a maximum of |length| characters. diff --git a/lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp b/lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp index f362477d923..c237b8d6a12 100644 --- a/lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp +++ b/lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp @@ -113,6 +113,7 @@ NativeThreadLinux::GetStopReason (ThreadStopInfo &stop_info) } return false; } + llvm_unreachable("unhandled StateType!"); } lldb_private::NativeRegisterContextSP diff --git a/lldb/source/Symbol/ClangASTType.cpp b/lldb/source/Symbol/ClangASTType.cpp index dce953ab048..3ca33249f28 100644 --- a/lldb/source/Symbol/ClangASTType.cpp +++ b/lldb/source/Symbol/ClangASTType.cpp @@ -1789,7 +1789,7 @@ ClangASTType::GetMemberFunctionAtIndex (size_t idx, { auto method_iter = cxx_record_decl->method_begin(); auto method_end = cxx_record_decl->method_end(); - if (idx < std::distance(method_iter, method_end)) + if (idx < static_cast<size_t>(std::distance(method_iter, method_end))) { std::advance(method_iter, idx); auto method_decl = method_iter->getCanonicalDecl(); diff --git a/lldb/source/Target/Memory.cpp b/lldb/source/Target/Memory.cpp index 0ff1d078bae..934bc967b68 100644 --- a/lldb/source/Target/Memory.cpp +++ b/lldb/source/Target/Memory.cpp @@ -251,7 +251,8 @@ AllocatedBlock::ReserveBlock (uint32_t size) { m_offset_to_chunk_size[0] = needed_chunks; if (log) - log->Printf ("[1] AllocatedBlock::ReserveBlock(%p) (size = %u (0x%x)) => offset = 0x%x, %u %u bit chunks", this, size, size, 0, needed_chunks, m_chunk_size); + log->Printf("[1] AllocatedBlock::ReserveBlock(%p) (size = %u (0x%x)) => offset = 0x%x, %u %u bit chunks", (void *)this, + size, size, 0, needed_chunks, m_chunk_size); addr = m_addr; } else @@ -269,7 +270,9 @@ AllocatedBlock::ReserveBlock (uint32_t size) { m_offset_to_chunk_size[last_offset] = needed_chunks; if (log) - log->Printf ("[2] AllocatedBlock::ReserveBlock(%p) (size = %u (0x%x)) => offset = 0x%x, %u %u bit chunks - num_chunks %lu", this, size, size, last_offset, needed_chunks, m_chunk_size, m_offset_to_chunk_size.size()); + log->Printf("[2] AllocatedBlock::ReserveBlock(%p) (size = %u (0x%x)) => offset = 0x%x, %u %u bit chunks - " + "num_chunks %lu", + (void *)this, size, size, last_offset, needed_chunks, m_chunk_size, m_offset_to_chunk_size.size()); addr = m_addr + last_offset; break; } @@ -285,7 +288,9 @@ AllocatedBlock::ReserveBlock (uint32_t size) { m_offset_to_chunk_size[last_offset] = needed_chunks; if (log) - log->Printf ("[3] AllocatedBlock::ReserveBlock(%p) (size = %u (0x%x)) => offset = 0x%x, %u %u bit chunks - num_chunks %lu", this, size, size, last_offset, needed_chunks, m_chunk_size, m_offset_to_chunk_size.size()); + log->Printf("[3] AllocatedBlock::ReserveBlock(%p) (size = %u (0x%x)) => offset = 0x%x, %u %u bit chunks - " + "num_chunks %lu", + (void *)this, size, size, last_offset, needed_chunks, m_chunk_size, m_offset_to_chunk_size.size()); addr = m_addr + last_offset; break; } @@ -346,7 +351,7 @@ AllocatedBlock::ReserveBlock (uint32_t size) } if (log) - log->Printf ("AllocatedBlock::ReserveBlock(%p) (size = %u (0x%x)) => 0x%16.16" PRIx64, this, size, size, (uint64_t)addr); + log->Printf("AllocatedBlock::ReserveBlock(%p) (size = %u (0x%x)) => 0x%16.16" PRIx64, (void *)this, size, size, (uint64_t)addr); return addr; } @@ -363,7 +368,8 @@ AllocatedBlock::FreeBlock (addr_t addr) } Log *log (GetLogIfAllCategoriesSet (LIBLLDB_LOG_PROCESS | LIBLLDB_LOG_VERBOSE)); if (log) - log->Printf ("AllocatedBlock::FreeBlock(%p) (addr = 0x%16.16" PRIx64 ") => %i, num_chunks: %lu", this, (uint64_t)addr, success, m_offset_to_chunk_size.size()); + log->Printf("AllocatedBlock::FreeBlock(%p) (addr = 0x%16.16" PRIx64 ") => %i, num_chunks: %lu", (void *)this, (uint64_t)addr, + success, m_offset_to_chunk_size.size()); return success; } diff --git a/lldb/source/Target/Platform.cpp b/lldb/source/Target/Platform.cpp index 6e0cfa087c9..96feb4ba004 100644 --- a/lldb/source/Target/Platform.cpp +++ b/lldb/source/Target/Platform.cpp @@ -541,6 +541,7 @@ RecurseCopy_Callback (void *baton, return FileSpec::eEnumerateDirectoryResultQuit; // got an error, bail out break; } + llvm_unreachable("Unhandled FileSpec::FileType!"); } Error |

