mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01: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