Removed unnecessary conversion to StringRef
authorRaphael Isemann <teemperor@gmail.com>
Wed, 1 May 2019 09:49:07 +0000 (09:49 +0000)
committerRaphael Isemann <teemperor@gmail.com>
Wed, 1 May 2019 09:49:07 +0000 (09:49 +0000)
llvm-svn: 359664

lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp

index b9ad32c..2c6c272 100644 (file)
@@ -1644,9 +1644,7 @@ void SymbolFileDWARF::UpdateExternalModuleListIfNeeded() {
             // 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;