diff options
author | Chris Lattner <sabre@nondot.org> | 2010-11-23 08:35:12 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-11-23 08:35:12 +0000 |
commit | 39b49bcaaddb1049234fca9500c0ac02c088e23d (patch) | |
tree | 4f7ac9da3cf2bcbad0aebfb781b7635462b431cf /include/clang/Basic/SourceManager.h | |
parent | 458b5e25052a1052eb873f9145298e0f0aa75cd1 (diff) |
now the FileManager has a FileSystemOpts ivar, stop threading
FileSystemOpts through a ton of apis, simplifying a lot of code.
This also fixes a latent bug in ASTUnit where it would invoke
methods on FileManager without creating one in some code paths
in cindextext.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120010 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/SourceManager.h')
-rw-r--r-- | include/clang/Basic/SourceManager.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/include/clang/Basic/SourceManager.h b/include/clang/Basic/SourceManager.h index 9df5ffa2da..e02242882c 100644 --- a/include/clang/Basic/SourceManager.h +++ b/include/clang/Basic/SourceManager.h @@ -33,7 +33,6 @@ namespace clang { class Diagnostic; class SourceManager; class FileManager; -class FileSystemOptions; class FileEntry; class LineTableInfo; @@ -372,7 +371,6 @@ class SourceManager { Diagnostic &Diag; FileManager &FileMgr; - const FileSystemOptions &FileSystemOpts; mutable llvm::BumpPtrAllocator ContentCacheAlloc; @@ -431,8 +429,7 @@ class SourceManager { explicit SourceManager(const SourceManager&); void operator=(const SourceManager&); public: - SourceManager(Diagnostic &Diag, FileManager &FileMgr, - const FileSystemOptions &FSOpts); + SourceManager(Diagnostic &Diag, FileManager &FileMgr); ~SourceManager(); void clearIDTables(); @@ -440,7 +437,6 @@ public: Diagnostic &getDiagnostics() const { return Diag; } FileManager &getFileManager() const { return FileMgr; } - const FileSystemOptions &getFileSystemOpts() const { return FileSystemOpts; } //===--------------------------------------------------------------------===// // MainFileID creation and querying methods. |