mirror of
https://github.com/apple/swift.git
synced 2026-06-20 15:42:51 +02:00
[modules] Introduce APIs to get the path for the file that a module came from.
Swift SVN r7890
This commit is contained in:
@@ -295,3 +295,8 @@ void SerializedModuleLoader::getDisplayDecls(const Module *module,
|
||||
return;
|
||||
moduleFile->getDisplayDecls(results);
|
||||
}
|
||||
|
||||
StringRef SerializedModuleLoader::getModuleFilename(const Module *Module) {
|
||||
ModuleFile *Mod = cast<SerializedModule>(Module)->File;
|
||||
return Mod->getModuleFilename();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user