File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
lldb/tools/lldb-dap/Handler Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1010#include " EventHelper.h"
1111#include " JSONUtils.h"
1212#include " RequestHandler.h"
13+ #include " llvm/ADT/StringRef.h"
1314
1415namespace lldb_dap {
1516
@@ -60,12 +61,12 @@ void CompileUnitsRequestHandler::operator()(
6061 llvm::json::Object body;
6162 llvm::json::Array units;
6263 const auto *arguments = request.getObject (" arguments" );
63- const std::string module_id =
64- GetString (arguments, " moduleId" ).value_or (" " ). str () ;
64+ const llvm::StringRef module_id =
65+ GetString (arguments, " moduleId" ).value_or (" " );
6566 int num_modules = dap.target .GetNumModules ();
6667 for (int i = 0 ; i < num_modules; i++) {
6768 auto curr_module = dap.target .GetModuleAtIndex (i);
68- if (module_id == curr_module.GetUUIDString ()) {
69+ if (module_id == llvm::StringRef ( curr_module.GetUUIDString () )) {
6970 int num_units = curr_module.GetNumCompileUnits ();
7071 for (int j = 0 ; j < num_units; j++) {
7172 auto curr_unit = curr_module.GetCompileUnitAtIndex (j);
You can’t perform that action at this time.
0 commit comments