Skip to content

Commit c2ca9d6

Browse files
committed
[lldb] Split up shared cache objc metadata extractor body (llvm#167761)
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)
1 parent b2d7d3e commit c2ca9d6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ extern "C"
325325
static const char *g_get_shared_cache_class_info_name =
326326
"__lldb_apple_objc_v2_get_shared_cache_class_info";
327327

328-
static const char *g_get_shared_cache_class_info_body = R"(
328+
static const char *g_get_shared_cache_class_info_definitions = R"(
329329
330330
extern "C"
331331
{
@@ -416,6 +416,9 @@ struct ClassInfo
416416
Class isa;
417417
uint32_t hash;
418418
} __attribute__((__packed__));
419+
)";
420+
421+
static const char *g_get_shared_cache_class_info_body = R"(
419422
420423
uint32_t
421424
__lldb_apple_objc_v2_get_shared_cache_class_info (void *objc_opt_ro_ptr,
@@ -1975,6 +1978,7 @@ AppleObjCRuntimeV2::SharedCacheClassInfoExtractor::
19751978
class_name_getter_function_name.AsCString(),
19761979
class_name_getter_function_name.AsCString());
19771980

1981+
shared_class_expression += g_get_shared_cache_class_info_definitions;
19781982
shared_class_expression += g_get_shared_cache_class_info_body;
19791983

19801984
auto utility_fn_or_error = exe_ctx.GetTargetRef().CreateUtilityFunction(

0 commit comments

Comments
 (0)