Skip to content

Commit 2f5f100

Browse files
committedApr 14, 2016
Fix Android build after r266267
llvm-svn: 266274
1 parent 0a68cf5 commit 2f5f100

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed
 

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

+17-17
Original file line numberDiff line numberDiff line change
@@ -596,47 +596,47 @@ class CommandObjectObjC_ClassTable_Dump : public CommandObjectParsed
596596
{
597597
auto iterators_pair = objc_runtime->GetDescriptorIteratorPair();
598598
auto iterator = iterators_pair.first;
599-
Stream &stdout(result.GetOutputStream());
599+
auto &out = result.GetOutputStream();
600600
for(; iterator != iterators_pair.second; iterator++)
601601
{
602602
if (iterator->second)
603603
{
604604
const char* class_name = iterator->second->GetClassName().AsCString("<unknown>");
605605
if (regex_up && class_name && !regex_up->Execute(class_name))
606606
continue;
607-
stdout.Printf("isa = 0x%" PRIx64, iterator->first);
608-
stdout.Printf(" name = %s", class_name);
609-
stdout.Printf(" instance size = %" PRIu64, iterator->second->GetInstanceSize());
610-
stdout.Printf(" num ivars = %" PRIuPTR, (uintptr_t)iterator->second->GetNumIVars());
607+
out.Printf("isa = 0x%" PRIx64, iterator->first);
608+
out.Printf(" name = %s", class_name);
609+
out.Printf(" instance size = %" PRIu64, iterator->second->GetInstanceSize());
610+
out.Printf(" num ivars = %" PRIuPTR, (uintptr_t)iterator->second->GetNumIVars());
611611
if (auto superclass = iterator->second->GetSuperclass())
612612
{
613-
stdout.Printf(" superclass = %s", superclass->GetClassName().AsCString("<unknown>"));
613+
out.Printf(" superclass = %s", superclass->GetClassName().AsCString("<unknown>"));
614614
}
615-
stdout.Printf("\n");
615+
out.Printf("\n");
616616
if (m_options.m_verbose)
617617
{
618618
for(size_t i = 0;
619619
i < iterator->second->GetNumIVars();
620620
i++)
621621
{
622622
auto ivar = iterator->second->GetIVarAtIndex(i);
623-
stdout.Printf(" ivar name = %s type = %s size = %" PRIu64 " offset = %" PRId32 "\n",
623+
out.Printf(" ivar name = %s type = %s size = %" PRIu64 " offset = %" PRId32 "\n",
624624
ivar.m_name.AsCString("<unknown>"),
625625
ivar.m_type.GetDisplayTypeName().AsCString("<unknown>"),
626626
ivar.m_size,
627627
ivar.m_offset);
628628
}
629629
iterator->second->Describe(nullptr,
630-
[objc_runtime, &stdout] (const char* name, const char* type) -> bool {
631-
stdout.Printf(" instance method name = %s type = %s\n",
632-
name,
633-
type);
630+
[objc_runtime, &out] (const char* name, const char* type) -> bool {
631+
out.Printf(" instance method name = %s type = %s\n",
632+
name,
633+
type);
634634
return false;
635635
},
636-
[objc_runtime, &stdout] (const char* name, const char* type) -> bool {
637-
stdout.Printf(" class method name = %s type = %s\n",
638-
name,
639-
type);
636+
[objc_runtime, &out] (const char* name, const char* type) -> bool {
637+
out.Printf(" class method name = %s type = %s\n",
638+
name,
639+
type);
640640
return false;
641641
},
642642
nullptr);
@@ -646,7 +646,7 @@ class CommandObjectObjC_ClassTable_Dump : public CommandObjectParsed
646646
{
647647
if (regex_up && !regex_up->Execute(""))
648648
continue;
649-
stdout.Printf("isa = 0x%" PRIx64 " has no associated class.\n", iterator->first);
649+
out.Printf("isa = 0x%" PRIx64 " has no associated class.\n", iterator->first);
650650
}
651651
}
652652
result.SetStatus(lldb::eReturnStatusSuccessFinishResult);

0 commit comments

Comments
 (0)