[Lldb-commits] [lldb] r266274 - Fix Android build after r266267

Oleksiy Vyalov via lldb-commits lldb-commits at lists.llvm.org
Wed Apr 13 19:02:29 PDT 2016


Author: ovyalov
Date: Wed Apr 13 21:02:12 2016
New Revision: 266274

URL: http://llvm.org/viewvc/llvm-project?rev=266274&view=rev
Log:
Fix Android build after r266267


Modified:
    lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp

Modified: lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp?rev=266274&r1=266273&r2=266274&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp (original)
+++ lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp Wed Apr 13 21:02:12 2016
@@ -596,7 +596,7 @@ protected:
         {
             auto iterators_pair = objc_runtime->GetDescriptorIteratorPair();
             auto iterator = iterators_pair.first;
-            Stream &stdout(result.GetOutputStream());
+            auto &out = result.GetOutputStream();
             for(; iterator != iterators_pair.second; iterator++)
             {
                 if (iterator->second)
@@ -604,15 +604,15 @@ protected:
                     const char* class_name = iterator->second->GetClassName().AsCString("<unknown>");
                     if (regex_up && class_name && !regex_up->Execute(class_name))
                         continue;
-                    stdout.Printf("isa = 0x%" PRIx64, iterator->first);
-                    stdout.Printf(" name = %s", class_name);
-                    stdout.Printf(" instance size = %" PRIu64, iterator->second->GetInstanceSize());
-                    stdout.Printf(" num ivars = %" PRIuPTR, (uintptr_t)iterator->second->GetNumIVars());
+                    out.Printf("isa = 0x%" PRIx64, iterator->first);
+                    out.Printf(" name = %s", class_name);
+                    out.Printf(" instance size = %" PRIu64, iterator->second->GetInstanceSize());
+                    out.Printf(" num ivars = %" PRIuPTR, (uintptr_t)iterator->second->GetNumIVars());
                     if (auto superclass = iterator->second->GetSuperclass())
                     {
-                        stdout.Printf(" superclass = %s", superclass->GetClassName().AsCString("<unknown>"));
+                        out.Printf(" superclass = %s", superclass->GetClassName().AsCString("<unknown>"));
                     }
-                    stdout.Printf("\n");
+                    out.Printf("\n");
                     if (m_options.m_verbose)
                     {
                         for(size_t i = 0;
@@ -620,23 +620,23 @@ protected:
                             i++)
                         {
                             auto ivar = iterator->second->GetIVarAtIndex(i);
-                            stdout.Printf("  ivar name = %s type = %s size = %" PRIu64 " offset = %" PRId32 "\n",
+                            out.Printf("  ivar name = %s type = %s size = %" PRIu64 " offset = %" PRId32 "\n",
                                                             ivar.m_name.AsCString("<unknown>"),
                                                             ivar.m_type.GetDisplayTypeName().AsCString("<unknown>"),
                                                             ivar.m_size,
                                                             ivar.m_offset);
                         }
                         iterator->second->Describe(nullptr,
-                                                   [objc_runtime, &stdout] (const char* name, const char* type) -> bool {
-                                                       stdout.Printf("  instance method name = %s type = %s\n",
-                                                                     name,
-                                                                     type);
+                                                   [objc_runtime, &out] (const char* name, const char* type) -> bool {
+                                                       out.Printf("  instance method name = %s type = %s\n",
+                                                                  name,
+                                                                  type);
                                                        return false;
                                                    },
-                                                   [objc_runtime, &stdout] (const char* name, const char* type) -> bool {
-                                                       stdout.Printf("  class method name = %s type = %s\n",
-                                                                     name,
-                                                                     type);
+                                                   [objc_runtime, &out] (const char* name, const char* type) -> bool {
+                                                       out.Printf("  class method name = %s type = %s\n",
+                                                                  name,
+                                                                  type);
                                                        return false;
                                                    },
                                                    nullptr);
@@ -646,7 +646,7 @@ protected:
                 {
                     if (regex_up && !regex_up->Execute(""))
                         continue;
-                    stdout.Printf("isa = 0x%" PRIx64 " has no associated class.\n", iterator->first);
+                    out.Printf("isa = 0x%" PRIx64 " has no associated class.\n", iterator->first);
                 }
             }
             result.SetStatus(lldb::eReturnStatusSuccessFinishResult);




More information about the lldb-commits mailing list