From 9923d686d079378ed47d534d897297e5468ac29e Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Tue, 27 Nov 2012 22:49:42 +0000 Subject: [PATCH] [libclang] Remove WorkingDir field from CIndexer, it has been rendered useless. No functionality change. llvm-svn: 168738 --- clang/tools/libclang/CIndex.cpp | 1 - clang/tools/libclang/CIndexer.h | 4 ---- 2 files changed, 5 deletions(-) diff --git a/clang/tools/libclang/CIndex.cpp b/clang/tools/libclang/CIndex.cpp index 3a6c408..81179bd 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 1e5fb82..5cc1bf6 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; } }; /** -- 2.7.4