[modules] Introduce APIs to get the path for the file that a module came from.

Swift SVN r7890
This commit is contained in:
Argyrios Kyrtzidis
2013-09-04 01:57:53 +00:00
parent b38d8e38b8
commit 2a6dc12607
9 changed files with 58 additions and 0 deletions

View File

@@ -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();
}