Don't use getRealModuleName for lldb module loader for now

This commit is contained in:
elsh
2021-10-05 18:42:18 -07:00
parent 7f9dbefd2f
commit c369a96834

View File

@@ -1226,14 +1226,13 @@ MemoryBufferSerializedModuleLoader::loadModule(SourceLoc importLoc,
return nullptr;
auto moduleID = path[0];
auto moduleName = Ctx.getRealModuleName(moduleID.Item).str();
// See if we find it in the registered memory buffers.
// FIXME: Right now this works only with access paths of length 1.
// Once submodules are designed, this needs to support suffix
// matching and a search path.
auto bufIter = MemoryBuffers.find(moduleName);
auto bufIter = MemoryBuffers.find(moduleID.Item.str());
if (bufIter == MemoryBuffers.end())
return nullptr;