diff --git a/clang/tools/libclang/CIndex.cpp b/clang/tools/libclang/CIndex.cpp index 3a6c408bff1f..81179bd455ae 100644 --- a/clang/tools/libclang/CIndex.cpp +++ b/clang/tools/libclang/CIndex.cpp @@ -2486,7 +2486,6 @@ CXTranslationUnit clang_createTranslationUnit(CXIndex CIdx, CIndexer *CXXIdx = static_cast(CIdx); FileSystemOptions FileSystemOpts; - FileSystemOpts.WorkingDir = CXXIdx->getWorkingDirectory(); IntrusiveRefCntPtr Diags; ASTUnit *TU = ASTUnit::LoadFromASTFile(ast_filename, Diags, FileSystemOpts, diff --git a/clang/tools/libclang/CIndexer.h b/clang/tools/libclang/CIndexer.h index 1e5fb824bb1b..5cc1bf648d6e 100644 --- a/clang/tools/libclang/CIndexer.h +++ b/clang/tools/libclang/CIndexer.h @@ -33,7 +33,6 @@ class CIndexer { unsigned Options; // CXGlobalOptFlags. llvm::sys::Path ResourcesPath; - std::string WorkingDir; public: CIndexer() : OnlyLocalDecls(false), DisplayDiagnostics(false), @@ -59,9 +58,6 @@ public: /// \brief Get the path of the clang resource files. std::string getClangResourcesPath(); - - const std::string &getWorkingDirectory() const { return WorkingDir; } - void setWorkingDirectory(const std::string &Dir) { WorkingDir = Dir; } }; /**