mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-06-13 04:13:48 +00:00
53 lines
2.3 KiB
Diff
53 lines
2.3 KiB
Diff
Index: source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTypeVendor.cpp
|
|
===================================================================
|
|
--- source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTypeVendor.cpp (revision 169184)
|
|
+++ source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTypeVendor.cpp (revision 169185)
|
|
@@ -344,7 +344,7 @@
|
|
|
|
while (*name_cursor != '\0')
|
|
{
|
|
- char *colon_loc = strchr(name_cursor, ':');
|
|
+ const char *colon_loc = strchr(name_cursor, ':');
|
|
if (!colon_loc)
|
|
{
|
|
selector_components.push_back(&ast_ctx.Idents.get(llvm::StringRef(name_cursor)));
|
|
Index: source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp
|
|
===================================================================
|
|
--- source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp (revision 169184)
|
|
+++ source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp (revision 169185)
|
|
@@ -727,7 +727,8 @@
|
|
lldb::addr_t load_addr) :
|
|
m_process(process),
|
|
m_end_iterator(*this, -1ll),
|
|
- m_load_addr(load_addr)
|
|
+ m_load_addr(load_addr),
|
|
+ m_classheader_size(sizeof(int32_t) * 2)
|
|
{
|
|
lldb::addr_t cursor = load_addr;
|
|
|
|
@@ -946,7 +947,7 @@
|
|
lldb_private::Process *m_process;
|
|
const_iterator m_end_iterator;
|
|
lldb::addr_t m_load_addr;
|
|
- const size_t m_classheader_size = (sizeof(int32_t) * 2);
|
|
+ const size_t m_classheader_size;
|
|
};
|
|
|
|
class ClassDescriptorV2 : public ObjCLanguageRuntime::ClassDescriptor
|
|
Index: source/Interpreter/CommandObject.cpp
|
|
===================================================================
|
|
--- source/Interpreter/CommandObject.cpp (revision 169184)
|
|
+++ source/Interpreter/CommandObject.cpp (revision 169185)
|
|
@@ -752,9 +752,9 @@
|
|
StreamString sstr;
|
|
sstr << "One of the following languages:\n";
|
|
|
|
- for (LanguageType l = eLanguageTypeUnknown; l < eNumLanguageTypes; ++l)
|
|
+ for (unsigned int l = eLanguageTypeUnknown; l < eNumLanguageTypes; ++l)
|
|
{
|
|
- sstr << " " << LanguageRuntime::GetNameForLanguageType(l) << "\n";
|
|
+ sstr << " " << LanguageRuntime::GetNameForLanguageType(static_cast<LanguageType>(l)) << "\n";
|
|
}
|
|
|
|
sstr.Flush();
|