[Lldb-commits] [lldb] r353721 - Update SymbolVendorMacOSX for new GetUUID interface

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Mon Feb 11 09:19:26 PST 2019


Author: jdevlieghere
Date: Mon Feb 11 09:19:26 2019
New Revision: 353721

URL: http://llvm.org/viewvc/llvm-project?rev=353721&view=rev
Log:
Update SymbolVendorMacOSX for new GetUUID interface

The interface changed in r353714.

Modified:
    lldb/trunk/source/Plugins/SymbolVendor/MacOSX/SymbolVendorMacOSX.cpp

Modified: lldb/trunk/source/Plugins/SymbolVendor/MacOSX/SymbolVendorMacOSX.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/SymbolVendor/MacOSX/SymbolVendorMacOSX.cpp?rev=353721&r1=353720&r2=353721&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/SymbolVendor/MacOSX/SymbolVendorMacOSX.cpp (original)
+++ lldb/trunk/source/Plugins/SymbolVendor/MacOSX/SymbolVendorMacOSX.cpp Mon Feb 11 09:19:26 2019
@@ -39,9 +39,8 @@ static bool UUIDsMatch(Module *module, O
                        lldb_private::Stream *feedback_strm) {
   if (module && ofile) {
     // Make sure the UUIDs match
-    lldb_private::UUID dsym_uuid;
-
-    if (!ofile->GetUUID(&dsym_uuid)) {
+    lldb_private::UUID dsym_uuid = ofile->GetUUID();
+    if (!dsym_uuid) {
       if (feedback_strm) {
         feedback_strm->PutCString(
             "warning: failed to get the uuid for object file: '");
@@ -162,8 +161,8 @@ SymbolVendorMacOSX::CreateInstance(const
           char dsym_path[PATH_MAX];
           if (module_sp->GetSourceMappingList().IsEmpty() &&
               dsym_fspec.GetPath(dsym_path, sizeof(dsym_path))) {
-            lldb_private::UUID dsym_uuid;
-            if (dsym_objfile_sp->GetUUID(&dsym_uuid)) {
+            lldb_private::UUID dsym_uuid = dsym_objfile_sp->GetUUID();
+            if (dsym_uuid) {
               std::string uuid_str = dsym_uuid.GetAsString();
               if (!uuid_str.empty()) {
                 char *resources = strstr(dsym_path, "/Contents/Resources/");




More information about the lldb-commits mailing list