[Lldb-commits] [lldb] r359664 - Removed unnecessary conversion to StringRef

Raphael Isemann via lldb-commits lldb-commits at lists.llvm.org
Wed May 1 02:49:08 PDT 2019


Author: teemperor
Date: Wed May  1 02:49:07 2019
New Revision: 359664

URL: http://llvm.org/viewvc/llvm-project?rev=359664&view=rev
Log:
Removed unnecessary conversion to StringRef

Modified:
    lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp

Modified: lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp?rev=359664&r1=359663&r2=359664&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp (original)
+++ lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp Wed May  1 02:49:07 2019
@@ -1644,9 +1644,7 @@ void SymbolFileDWARF::UpdateExternalModu
             // printed. However, as one can notice in this case we don't
             // actually need to try to load the already loaded module
             // (corresponding to .dwo) so we simply skip it.
-            if (m_obj_file->GetFileSpec()
-                        .GetFileNameExtension()
-                        .GetStringRef() == ".dwo" &&
+            if (m_obj_file->GetFileSpec().GetFileNameExtension() == ".dwo" &&
                 llvm::StringRef(m_obj_file->GetFileSpec().GetPath())
                     .endswith(dwo_module_spec.GetFileSpec().GetPath())) {
               continue;




More information about the lldb-commits mailing list