Added the option to override Clang's resource

directory when constructing a ClangImporter.
This is for lldb, which keeps Clang's resource
directory inside its own framework bundle.


Swift SVN r6833
This commit is contained in:
Sean Callanan
2013-08-02 02:25:42 +00:00
parent d18013962b
commit f9a446b410
3 changed files with 30 additions and 16 deletions

View File

@@ -70,7 +70,8 @@ bool swift::CompilerInstance::setup(const CompilerInvocation &Invok) {
ImporterCtor(*Context, Invocation.getSDKPath(),
Invocation.getTargetTriple(),
Invocation.getClangModuleCachePath(),
Invocation.getImportSearchPaths());
Invocation.getImportSearchPaths(),
StringRef());
if (!clangImporter) {
Diagnostics.diagnose(SourceLoc(), diag::error_clang_importer_create_fail);
return true;