Skip to content

Conversation

@bulbazord
Copy link
Member

After my previous change (#167579), the string exceeded 16380 single-byte characters. MSVC did not like this, so I'm splitting it up into two strings.

After my previous change (llvm#167579), the string exceeded 16380
single-byte characters. MSVC did not like this, so I'm splitting it up
into two strings.
@llvmbot
Copy link
Member

llvmbot commented Nov 12, 2025

@llvm/pr-subscribers-lldb

Author: Alex Langford (bulbazord)

Changes

After my previous change (#167579), the string exceeded 16380 single-byte characters. MSVC did not like this, so I'm splitting it up into two strings.


Full diff: https://github.com/llvm/llvm-project/pull/167761.diff

1 Files Affected:

  • (modified) lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp (+5-1)
diff --git a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp
index 27a2c9e1d1dd9..83e39f37d8dcf 100644
--- a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp
+++ b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp
@@ -320,7 +320,7 @@ extern "C"
 static const char *g_get_shared_cache_class_info_name =
     "__lldb_apple_objc_v2_get_shared_cache_class_info";
 
-static const char *g_get_shared_cache_class_info_body = R"(
+static const char *g_get_shared_cache_class_info_definitions = R"(
 
 extern "C"
 {
@@ -411,6 +411,9 @@ struct ClassInfo
     Class isa;
     uint32_t hash;
 }  __attribute__((__packed__));
+)";
+
+static const char *g_get_shared_cache_class_info_body = R"(
 
 uint32_t
 __lldb_apple_objc_v2_get_shared_cache_class_info (void *objc_opt_ro_ptr,
@@ -1962,6 +1965,7 @@ AppleObjCRuntimeV2::SharedCacheClassInfoExtractor::
                       class_name_getter_function_name.AsCString(),
                       class_name_getter_function_name.AsCString());
 
+  shared_class_expression += g_get_shared_cache_class_info_definitions;
   shared_class_expression += g_get_shared_cache_class_info_body;
 
   auto utility_fn_or_error = exe_ctx.GetTargetRef().CreateUtilityFunction(

@bulbazord
Copy link
Member Author

Landing to unbreak build

@bulbazord bulbazord merged commit 6806349 into llvm:main Nov 12, 2025
10 of 11 checks passed
@bulbazord bulbazord deleted the splitup-objc-sharedcache-string branch November 12, 2025 21:08
bulbazord added a commit to bulbazord/llvm-project that referenced this pull request Nov 12, 2025
After my previous change (llvm#167579), the string exceeded 16380
single-byte characters. MSVC did not like this, so I'm splitting it up
into two strings.

(cherry picked from commit 6806349)
git-crd pushed a commit to git-crd/crd-llvm-project that referenced this pull request Nov 13, 2025
After my previous change (llvm#167579), the string exceeded 16380
single-byte characters. MSVC did not like this, so I'm splitting it up
into two strings.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants